diff --git a/src/Http/Auth/ApiKeyAuthenticator.php b/src/Http/Auth/ApiKeyAuthenticator.php index 844640c1e..78829fa24 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.'); } }