private function LoginController::remoteUserMissing in LDAP Single Sign On 8.4
Same name and namespace in other branches
- 8 src/Controller/LoginController.php \Drupal\ldap_sso\Controller\LoginController::remoteUserMissing()
Handle missing remote user.
1 call to LoginController::remoteUserMissing()
- LoginController::login in src/
Controller/ LoginController.php - Login.
File
- src/
Controller/ LoginController.php, line 315
Class
- LoginController
- Login controller.
Namespace
Drupal\ldap_sso\ControllerCode
private function remoteUserMissing() : void {
$this->logger
->debug('$_SERVER[\'@variable\'] not found', [
'@variable' => $this->config
->get('ssoVariable'),
]);
$this->detailLog
->log('Authentication failure, redirecting to login', [], 'ldap_sso');
setcookie('sso_stop', 'sso_stop', $this
->getCookieLifeTime(), base_path(), '');
$this
->messenger()
->addError($this
->t('You were not authenticated by the server. You may log in with your credentials below.'));
}