mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
Try to fix passkeys login loop
This commit is contained in:
@@ -25,7 +25,7 @@ final class GeneratePasskeyAuthenticationOptionsAction extends BaseGeneratePassk
|
||||
|
||||
$options = Serializer::make()->toJson($options);
|
||||
|
||||
Session::flash('passkey-authentication-options', $options);
|
||||
Session::put('passkey-authentication-options', $options);
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ final class PasskeyLoginController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
$passkeyOptionsJson = Session::get('passkey-authentication-options');
|
||||
$passkeyOptionsJson = Session::pull('passkey-authentication-options');
|
||||
|
||||
if (! is_string($passkeyOptionsJson) || $passkeyOptionsJson === '') {
|
||||
Log::channel('failed_login')->warning(
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
@endif
|
||||
|
||||
<div x-show="!showPassword" x-cloak>
|
||||
@include('partials.passkey-authenticate', ['autoPromptPasskey' => ! $errors->any()])
|
||||
@include('partials.passkey-authenticate', [
|
||||
'autoPromptPasskey' => ! $errors->any() && ! session()->has('authenticatePasskey::message'),
|
||||
])
|
||||
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user