Respond 401 not 404 when bad request token

This commit is contained in:
Dane Everitt 2017-06-28 20:05:50 -05:00
parent 9ca5f97e65
commit 9515128b8a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 5 additions and 1 deletions

View file

@ -76,7 +76,7 @@ class DaemonAuthenticate
$node = Node::where('daemonSecret', $request->header('X-Access-Node'))->first();
if (! $node) {
return abort(404);
return abort(401);
}
return $next($request);