Skip to content

Commit 69d4c7b

Browse files
authored
Update LoggedUser.php
1 parent f880bf5 commit 69d4c7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/go5auth/lib/Auth/Source/LoggedUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function authenticate(&$state)
3434
SimpleSAML_Logger::debug('go5auth | access_token: ' . $accessToken);
3535
$userInfo = $this->getUserInfo($accessToken);
3636

37-
if ($userInfo->data->attributes->status != 'active') {
37+
if ($userInfo->data->attributes->status !== 'active' || $userInfo->data->attributes->{'login-enabled'} !== true) {
3838
header('HTTP/1.1 403 Forbidden');
3939
echo 'go5auth | error: inactive user';
4040
exit;

0 commit comments

Comments
 (0)