validate([ 'current_password' => $this->currentPasswordRules(), 'password' => $this->passwordRules(), ]); } catch (ValidationException $e) { $this->reset('current_password', 'password', 'password_confirmation'); throw $e; } Auth::user()->update([ 'password' => $validated['password'], ]); $this->reset('current_password', 'password', 'password_confirmation'); $this->dispatch('password-updated'); } }; ?>
@include('partials.settings-heading') {{ __('Password Settings') }}
{{ __('Save') }}
{{ __('Saved.') }}
@if (Laravel\Fortify\Features::canManageTwoFactorAuthentication() && auth()?->user()?->oidc_sub === null) 2FA Optionally, you can enable Two-Factor Authentication via TOTP {{ __('2FA Settings…') }} @endif