{{ __('Update Password') }}

@php $isLdapUser = false; try { if (auth()->user()->email && app(\LdapRecord\Container::class)->getDefaultConnection()->query()->where('mail', '=', auth()->user()->email)->first()) { $isLdapUser = true; } } catch (\Exception $e) { // LDAP connection failed, treat as non-LDAP user $isLdapUser = false; } @endphp @if ($isLdapUser) {{ __('Update your LDAP password. This will update both your LDAP and local account password.') }} @else {{ __('Ensure your account is using a long, random password to stay secure.') }} @endif

@csrf @method('put') @if ($errors->updatePassword->any()) @endif @if (session('status') === 'password-updated') @endif
{{ __('Save') }} @if (session('status') === 'password-updated')

{{ __('Saved.') }}

@endif