private function LoginHandler::authenticateUser in Shibboleth Authentication 8
Finalize user login.
Return value
bool
Throws
\Exception
1 call to LoginHandler::authenticateUser()
- LoginHandler::shibLogin in src/
Login/ LoginHandler.php
File
- src/
Login/ LoginHandler.php, line 267
Class
- LoginHandler
- Class LoginHandler.
Namespace
Drupal\shib_auth\LoginCode
private function authenticateUser() {
if (empty($this->user)) {
$this
->setErrorMessage(t('There was an error logging you in.'));
throw new \Exception('No uid found for user when trying to initialize Drupal session.');
}
user_login_finalize($this->user);
return TRUE;
}