From 342281ef0d30d00cfe1302cf09471d36fa8aa1ce Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 12 Jan 2015 13:27:09 +0000 Subject: [PATCH] Change unauthenticated message --- src/Http/Auth/ApiKeyAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Auth/ApiKeyAuthenticator.php b/src/Http/Auth/ApiKeyAuthenticator.php index 844640c1..78829fa2 100644 --- a/src/Http/Auth/ApiKeyAuthenticator.php +++ b/src/Http/Auth/ApiKeyAuthenticator.php @@ -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.'); } }