Respond 401 not 404 when bad request token
This commit is contained in:
parent
9ca5f97e65
commit
9515128b8a
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue