private function LoginController::remoteUserMissing in LDAP Single Sign On 8
Same name and namespace in other branches
- 8.4 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 255
Class
- LoginController
- Class LoginController.
Namespace
Drupal\ldap_sso\ControllerCode
private function remoteUserMissing() {
$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', 'true', $this
->getCookieLifeTime(), base_path(), 0);
$this
->messenger()
->addError($this
->t('You were not authenticated by the server. You may log in with your credentials below.'));
}