protected function AuthController::failLogin in Auth0 Single Sign On 8
Same name and namespace in other branches
- 8.2 src/Controller/AuthController.php \Drupal\auth0\Controller\AuthController::failLogin()
4 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::processUserLogin in src/
Controller/ AuthController.php - Process the auth0 user profile and signin or signup the user.
- AuthController::verify_email in src/
Controller/ AuthController.php - Send the verification email.
File
- src/
Controller/ AuthController.php, line 348
Class
- AuthController
- Controller routines for auth0 authentication.
Namespace
Drupal\auth0\ControllerCode
protected function failLogin($message, $logMessage) {
$this->logger
->error($logMessage);
drupal_set_message($message, 'error');
if ($this->auth0) {
$this->auth0
->logout();
}
return new RedirectResponse('/');
}