1
0
Fork 0
mirror of synced 2024-07-02 13:10:38 +12:00

Updated error message

This commit is contained in:
Eldad Fux 2020-06-16 09:13:24 +03:00
parent 936b48af6d
commit 9152b9d721

View file

@ -187,7 +187,7 @@ $utopia->init(function () use ($utopia, $request, $response, &$user, $project, $
throw new Exception('Project not found', 404); throw new Exception('Project not found', 404);
} }
throw new Exception($user->getAttribute('email', 'Guest').' (role: '.strtolower($roles[$role]['label']).') missing scope ('.$scope.')', 401); throw new Exception($user->getAttribute('email', 'User').' (role: '.strtolower($roles[$role]['label']).') missing scope ('.$scope.')', 401);
} }
if (Auth::USER_STATUS_BLOCKED == $user->getAttribute('status')) { // Account has not been activated if (Auth::USER_STATUS_BLOCKED == $user->getAttribute('status')) { // Account has not been activated