Skip to content

Commit 03f7ef1

Browse files
authored
Update LoggedUser.php
1 parent 112a360 commit 03f7ef1

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
@@ -44,7 +44,7 @@ public function authenticate(&$state)
4444
$userInfo = $this->getUserInfo($accessToken);
4545

4646
if ($userInfo->data->attributes->status !== 'active' || $userInfo->data->attributes->{'login-enabled'} !== true) {
47-
header('HTTP/1.1 403 Forbidden');
47+
header('HTTP/1.1 401 Unauthorized');
4848
echo 'go5auth | error: inactive user';
4949
exit;
5050
}

0 commit comments

Comments
 (0)