Back to Kavita

Change Password.Component

UI/Web/src/app/user-settings/change-password/change-password.component.html

0.9.0938 B
Original Source

••••••••••••••• @if (resetPasswordErrors.length > 0) { @for(error of resetPasswordErrors; track error) { {{error}} } } @if (passwordChangeForm.get('oldPassword'); as formControl) { {{t('current-password-label')}} @if (passwordChangeForm.dirty || passwordChangeForm.touched) { @if (formControl.errors?.required) { {{t('required-field')}} } } } @if (passwordChangeForm.get('password'); as formControl) { {{t('new-password-label')}} @if (passwordChangeForm.dirty || passwordChangeForm.touched) { @if (formControl.errors?.required) { {{t('required-field')}} } } } @if (passwordChangeForm.get('confirmPassword'); as formControl) { {{t('confirm-password-label')}} @if (passwordChangeForm.dirty || passwordChangeForm.touched) { @if (formControl.errors?.required) { {{t('required-field')}} } @if (!passwordsMatch) { {{t('passwords-must-match')}} } } } {{t('reset')}}{{t('save')}}