UserAuthenticationController::floodControl

protected UserAuthenticationController::floodControl(Request $request, $username) Enforces flood control for the current login request. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. string $username: The user name sent for login credentials. File core/modules/user/src/Controller/UserAuthenticationController.php, line 293 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\us

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

UserAuthenticationController::LOGGED_IN

String sent in responses, to describe the user as being logged in. File core/modules/user/src/Controller/UserAuthenticationController.php, line 31 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code const LOGGED_IN = 1;

UserAuthenticationController::LOGGED_OUT

String sent in responses, to describe the user as being logged out. File core/modules/user/src/Controller/UserAuthenticationController.php, line 38 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code const LOGGED_OUT = 0;

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::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::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::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::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); }