Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

UserAuthInterface.php

Namespace

Drupal\user

File

core/modules/user/src/UserAuthInterface.php

View source
<?php

namespace Drupal\user;


/**
 * An interface for validating user authentication credentials.
 */
interface UserAuthInterface {
    
    /**
     * Validates user authentication credentials.
     *
     * @param string $username
     *   The user name to authenticate.
     * @param string $password
     *   A plain-text password, such as trimmed text from form values.
     *
     * @return int|bool
     *   The user's uid on success, or FALSE on failure to authenticate.
     */
    public function authenticate($username, $password);

}

Interfaces

Title Deprecated Summary
UserAuthInterface An interface for validating user authentication credentials.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal