mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
guard passkey check passkey length
This commit is contained in:
@@ -66,7 +66,7 @@ class AuthServiceProvider extends ServiceProvider
|
||||
|
||||
Auth::viaRequest('passkey', function (Request $request) {
|
||||
$passkey = $request->passkey;
|
||||
if (empty($passkey)) {
|
||||
if (strlen($passkey) != 32) {
|
||||
return null;
|
||||
}
|
||||
return User::query()->where('passkey', $passkey)->first();
|
||||
|
||||
Reference in New Issue
Block a user