Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit ea59a17

Browse files
committed
Reverted findByKey()
1 parent b793f7b commit ea59a17

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Statistics/Http/Middleware/Authorize.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ class Authorize
88
{
99
public function handle($request, $next)
1010
{
11-
$app = App::findByKey($request->key);
12-
13-
return is_null($app) || $app->secret !== $request->secret
14-
? abort(403)
15-
: $next($request);
11+
return is_null(App::findBySecret($request->secret)) ? abort(403) : $next($request);
1612
}
1713
}

0 commit comments

Comments
 (0)