feat: i did a dumb
This commit is contained in:
parent
8dce96b196
commit
071e2140b8
@ -15,7 +15,7 @@ class HeaderAuth
|
|||||||
*/
|
*/
|
||||||
public function handle(Request $request, Closure $next): Response
|
public function handle(Request $request, Closure $next): Response
|
||||||
{
|
{
|
||||||
if (hash_equals(config('bot.header_auth'), $request->header('X-BOTAUTH'))) {
|
if (!hash_equals(config('bot.header_auth'), $request->header('X-BOTAUTH'))) {
|
||||||
return response('Unauthorized', 401);
|
return response('Unauthorized', 401);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user