UI: Fix change password current password not required
This commit is contained in:
		
							parent
							
								
									33e736d4ca
								
							
						
					
					
						commit
						942e6aaccf
					
				@ -38,9 +38,9 @@
 | 
			
		||||
        <div fxLayout="row" fxLayout.xs="column" fxLayoutGap="25px" fxLayoutGap.xs="0">
 | 
			
		||||
          <div fxFlex="290px" fxFlex.sm="250px"  fxFlex.xs="100">
 | 
			
		||||
            <h3 class="card-title" translate>profile.change-password</h3>
 | 
			
		||||
            <mat-form-field class="mat-block same-color" hideRequiredMarker appearance="fill" color="primary">
 | 
			
		||||
            <mat-form-field class="mat-block same-color" appearance="fill" color="primary">
 | 
			
		||||
              <mat-label translate>profile.current-password</mat-label>
 | 
			
		||||
              <input matInput type="password" name="current-password" formControlName="currentPassword" autocomplete="current-password" required/>
 | 
			
		||||
              <input matInput type="password" name="current-password" formControlName="currentPassword" autocomplete="current-password"/>
 | 
			
		||||
              <tb-toggle-password [fxShow]="changePassword.get('currentPassword').dirty || changePassword.get('currentPassword').touched" matSuffix></tb-toggle-password>
 | 
			
		||||
              <mat-error *ngIf="changePassword.get('currentPassword').hasError('differencePassword')">
 | 
			
		||||
                {{ 'security.password-requirement.incorrect-password-try-again' | translate }}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user