Change unauthenticated message

This commit is contained in:
James Brooks 2015-01-12 13:27:09 +00:00
parent a6f8775567
commit 342281ef0d

View File

@ -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.');
}
}