function authenticate_user::handle_page_cancel in Google Authenticator / 2 Factor Authentication - 2FA 8.2
File
- src/
Form/ authenticate_user.php, line 341 - This is used to authenticate user during login.
Class
- authenticate_user
- @file This is used to authenticate user during login.
Namespace
Drupal\miniorange_2fa\formCode
function handle_page_cancel() {
$url = Url::fromRoute('user.login')
->toString();
$response = new RedirectResponse($url);
$response
->send();
}