You are here

protected function AuthController::auth0FailWithVerifyEmail in Auth0 Single Sign On 8.2

Same name and namespace in other branches
  1. 8 src/Controller/AuthController.php \Drupal\auth0\Controller\AuthController::auth0FailWithVerifyEmail()

Email not verified error message.

Parameters

string $idToken: The id token.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse The redirect response.

1 call to AuthController::auth0FailWithVerifyEmail()
AuthController::processUserLogin in src/Controller/AuthController.php
Process the Auth0 user profile and sign in or sign the user up.

File

src/Controller/AuthController.php, line 707
Contains \Drupal\auth0\Controller\AuthController.

Class

AuthController
Controller routines for auth0 authentication.

Namespace

Drupal\auth0\Controller

Code

protected function auth0FailWithVerifyEmail($idToken) {
  $messageHtml = sprintf('<p>%s.</p>', $this
    ->t('Please verify your email and log in again'));
  return $this
    ->failLogin(Markup::create($messageHtml), 'Email not verified');
}