Change unauthenticated message
This commit is contained in:
@@ -32,7 +32,7 @@ class ApiKeyAuthenticator extends AuthorizationProvider
|
|||||||
try {
|
try {
|
||||||
return User::findByApiKey($api_key);
|
return User::findByApiKey($api_key);
|
||||||
} catch (ModelNotFoundException $e) {
|
} catch (ModelNotFoundException $e) {
|
||||||
throw new UnauthorizedHttpException(null, 'The API key you provided was not correct.');
|
throw new UnauthorizedHttpException(null, 'You need to be authenticated to perform this action.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user