1
0
Fork 0
mirror of synced 2024-06-28 11:10:46 +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($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