mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-22 10:44:09 +01:00
Change unauthenticated message
This commit is contained in:
parent
a6f8775567
commit
342281ef0d
@ -32,7 +32,7 @@ class ApiKeyAuthenticator extends AuthorizationProvider
|
||||
try {
|
||||
return User::findByApiKey($api_key);
|
||||
} 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.');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user