feat: i did a dumb

This commit is contained in:
llama committed 2023-10-08 20:30:23 -04:00
1 parent 8dce96b196
commit 071e2140b8
1 file changed
+1 -1
+1 -1
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);
}