protected function AuthController::failLogin in Auth0 Single Sign On 8.2
Same name and namespace in other branches
- 8 src/Controller/AuthController.php \Drupal\auth0\Controller\AuthController::failLogin()
Fails user login.
Parameters
string $message: The message to display.
string $logMessage: The message to log.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse The redirect response after fail.
5 calls to AuthController::failLogin()
- AuthController::auth0FailWithVerifyEmail in src/
Controller/ AuthController.php - Email not verified error message.
- AuthController::callback in src/
Controller/ AuthController.php - Handles the callback for the oauth transaction.
- AuthController::checkForError in src/
Controller/ AuthController.php - Check for errors.
- AuthController::processUserLogin in src/
Controller/ AuthController.php - Process the Auth0 user profile and sign in or sign the user up.
- AuthController::verify_email in src/
Controller/ AuthController.php
File
- src/
Controller/ AuthController.php, line 611 - Contains \Drupal\auth0\Controller\AuthController.
Class
- AuthController
- Controller routines for auth0 authentication.
Namespace
Drupal\auth0\ControllerCode
protected function failLogin($message, $logMessage) {
\Drupal::messenger()
->addError($message);
$this->logger
->error($logMessage);
if ($this->auth0) {
$this->auth0
->logout();
}
return new RedirectResponse('/');
}