UserAuthInterface

An interface for validating user authentication credentials. Hierarchy interface \Drupal\user\UserAuthInterface File core/modules/user/src/UserAuthInterface.php, line 8 Namespace Drupal\user Members Name Modifiers Type Description UserAuthInterface::authenticate public function Validates user authentication credentials.

UserAuthenticationController::userLogout

protected UserAuthenticationController::userLogout() Logs the user out. File core/modules/user/src/Controller/UserAuthenticationController.php, line 247 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code protected function userLogout() { user_logout(); }

UserAuthenticationController::__construct

public UserAuthenticationController::__construct(FloodInterface $flood, UserStorageInterface $user_storage, CsrfTokenGenerator $csrf_token, UserAuthInterface $user_auth, RouteProviderInterface $route_provider, Serializer $serializer, array $serializer_formats) Constructs a new UserAuthenticationController object. Parameters \Drupal\Core\Flood\FloodInterface $flood: The flood controller. \Drupal\user\UserStorageInterface $user_storage: The user storage. \Drupal\Core\Access\CsrfTokenGenerator $c

UserAuthenticationController::userLoginFinalize

protected UserAuthenticationController::userLoginFinalize(UserInterface $user) Finalizes the user login. Parameters \Drupal\user\UserInterface $user: The user. File core/modules/user/src/Controller/UserAuthenticationController.php, line 229 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code protected function userLoginFinalize(UserInterface $user) { user_login_finalize($user); }

UserAuthenticationController::loginStatus

public UserAuthenticationController::loginStatus() Checks whether a user is logged in or not. Return value \Symfony\Component\HttpFoundation\Response The response. File core/modules/user/src/Controller/UserAuthenticationController.php, line 257 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code public function loginStatus() { if ($this->currentUser()->isAuthenticated()) { $resp

UserAuthenticationController::userIsBlocked

protected UserAuthenticationController::userIsBlocked($name) Verifies if the user is blocked. Parameters string $name: The username. Return value bool TRUE if the user is blocked, otherwise FALSE. File core/modules/user/src/Controller/UserAuthenticationController.php, line 219 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code protected function userIsBlocked($name) { return user_is_blo

UserAuthenticationController::login

public UserAuthenticationController::login(Request $request) Logs in a user. Parameters \Symfony\Component\HttpFoundation\Request $request: The request. Return value \Symfony\Component\HttpFoundation\Response A response which contains the ID and CSRF token. File core/modules/user/src/Controller/UserAuthenticationController.php, line 151 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code p

UserAuthenticationController::logout

public UserAuthenticationController::logout() Logs out a user. Return value \Drupal\rest\ResourceResponse The response object. File core/modules/user/src/Controller/UserAuthenticationController.php, line 239 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code public function logout() { $this->userLogout(); return new Response(NULL, 204); }

UserAuthenticationController::getLoginFloodIdentifier

protected UserAuthenticationController::getLoginFloodIdentifier(Request $request, $username) Gets the login identifier for user login flood control. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. string $username: The username supplied in login credentials. Return value string The login identifier or if the user does not exist an empty string. File core/modules/user/src/Controller/UserAuthenticationController.php, line 325 Class UserAuthenticationContr

UserAuthenticationController::getRequestFormat

protected UserAuthenticationController::getRequestFormat(Request $request) Gets the format of the current request. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. Return value string The format of the request. File core/modules/user/src/Controller/UserAuthenticationController.php, line 277 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code protected fun