feat: i did a dumb

This commit is contained in:
llama 2023-10-08 20:30:23 -04:00
parent 8dce96b196
commit 071e2140b8

View File

@ -15,7 +15,7 @@ class HeaderAuth
*/
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);
}