You are here

UserAuthInterface.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/user/src/UserAuthInterface.php

Namespace

Drupal\user

File

core/modules/user/src/UserAuthInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\user\UserAuthInterface.
 */
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

Namesort descending Description
UserAuthInterface An interface for validating user authentication credentials.