protected function SocialAuthUserManager::nullifySessionKeys in Social Auth 8
Nullifies session keys if user could not logged in.
3 calls to SocialAuthUserManager::nullifySessionKeys()
- SocialAuthUserManager::authenticateExistingUser in src/
SocialAuthUserManager.php - Authenticates and redirects existing users in authentication process.
- SocialAuthUserManager::authenticateNewUser in src/
SocialAuthUserManager.php - Authenticates and redirects new users in authentication process.
- SocialAuthUserManager::authenticateUser in src/
SocialAuthUserManager.php - Creates and/or authenticates an user.
File
- src/
SocialAuthUserManager.php, line 375
Class
- SocialAuthUserManager
- Contains all logic that is related to Drupal user management.
Namespace
Drupal\social_authCode
protected function nullifySessionKeys() {
if (!empty($this->sessionKeys)) {
array_walk($this->sessionKeys, function ($session_key) {
$this->session
->set($session_key, NULL);
});
}
}