We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f880bf5 commit 69d4c7bCopy full SHA for 69d4c7b
1 file changed
modules/go5auth/lib/Auth/Source/LoggedUser.php
@@ -34,7 +34,7 @@ public function authenticate(&$state)
34
SimpleSAML_Logger::debug('go5auth | access_token: ' . $accessToken);
35
$userInfo = $this->getUserInfo($accessToken);
36
37
- if ($userInfo->data->attributes->status != 'active') {
+ if ($userInfo->data->attributes->status !== 'active' || $userInfo->data->attributes->{'login-enabled'} !== true) {
38
header('HTTP/1.1 403 Forbidden');
39
echo 'go5auth | error: inactive user';
40
exit;
0 commit comments