diff --git a/src/Pages/TwoFactor.php b/src/Pages/TwoFactor.php index 5a915cf..947004c 100644 --- a/src/Pages/TwoFactor.php +++ b/src/Pages/TwoFactor.php @@ -88,7 +88,7 @@ public function getConfirmationForm(): array return [ TextInput::make('current_password') ->label(__('Password')) - ->dehydrateStateUsing(fn ($state) => filled($state)) + ->dehydrateStateUsing(fn($state) => filled($state)) ->required() ->password() ->inlineLabel() @@ -258,7 +258,7 @@ public function disableTwoFactorAuthentication(DisableTwoFactorAuthentication $d $this->showingConfirmation = false; $this->showingRecoveryCodes = false; - $this->mount(); + $this->user->refresh(); } public function showRecoveryCodes(): void @@ -272,4 +272,4 @@ public function regenerateRecoveryCodes(GenerateNewRecoveryCodes $generate): voi $this->showingRecoveryCodes = true; } -} +} \ No newline at end of file