Merge pull request #4856 from GabrielInTheWorld/util-fixes
Fixes some autocompleted inputs
This commit is contained in:
commit
ee9909308f
@ -31,6 +31,7 @@
|
||||
<mat-form-field>
|
||||
<input
|
||||
matInput
|
||||
autocomplete="off"
|
||||
osAutofocus
|
||||
[(ngModel)]="inputControl"
|
||||
placeholder="{{ extensionLabel }}"
|
||||
|
@ -1,9 +1,10 @@
|
||||
<div class="form-wrapper">
|
||||
<form [formGroup]="newPasswordForm" (ngSubmit)="submitNewPassword()">
|
||||
<form [formGroup]="newPasswordForm" (ngSubmit)="submitNewPassword()" autocomplete="off">
|
||||
<h3 translate>Please enter your new password</h3>
|
||||
<mat-form-field>
|
||||
<input
|
||||
matInput
|
||||
autocomplete="off"
|
||||
required
|
||||
placeholder="{{ 'New password' | translate }}"
|
||||
formControlName="password"
|
||||
|
@ -1,8 +1,8 @@
|
||||
<div class="form-wrapper">
|
||||
<form [formGroup]="resetPasswordForm" (ngSubmit)="resetPassword()">
|
||||
<form [formGroup]="resetPasswordForm" (ngSubmit)="resetPassword()" autocomplete="off">
|
||||
<h3 translate>Enter your email to send the password reset link</h3>
|
||||
<mat-form-field>
|
||||
<input matInput required placeholder="{{ 'Email' | translate }}" formControlName="email" type="email" />
|
||||
<input matInput required placeholder="{{ 'Email' | translate }}" formControlName="email" type="email" autocomplete="off" />
|
||||
<mat-error *ngIf="resetPasswordForm.get('email').invalid" translate>
|
||||
Please enter a valid email address!
|
||||
</mat-error>
|
||||
|
@ -55,11 +55,15 @@
|
||||
<form [formGroup]="userPasswordForm" (keydown)="onKeyDown($event)">
|
||||
<mat-form-field>
|
||||
<input
|
||||
[type]="hideOldPassword ? 'password' : 'text'"
|
||||
matInput
|
||||
formControlName="oldPassword"
|
||||
placeholder="{{ 'Old password' | translate }}"
|
||||
required
|
||||
/>
|
||||
<mat-icon mat-button matSuffix mat-icon-button (click)="hideOldPassword = !hideOldPassword">
|
||||
{{ hideOldPassword ? 'visibility' : 'visibility_off' }}
|
||||
</mat-icon>
|
||||
</mat-form-field><br>
|
||||
<mat-form-field>
|
||||
<input
|
||||
|
@ -50,6 +50,11 @@ export class PasswordComponent extends BaseViewComponent implements OnInit {
|
||||
*/
|
||||
public hidePassword = true;
|
||||
|
||||
/**
|
||||
* if the old password should be shown
|
||||
*/
|
||||
public hideOldPassword = true;
|
||||
|
||||
private urlUserId: number | null;
|
||||
|
||||
/**
|
||||
|
@ -105,6 +105,7 @@
|
||||
<input
|
||||
type="email"
|
||||
matInput
|
||||
autocomplete="off"
|
||||
placeholder="{{ 'Email' | translate }}"
|
||||
name="email"
|
||||
formControlName="email"
|
||||
@ -164,6 +165,7 @@
|
||||
<mat-form-field>
|
||||
<input
|
||||
matInput
|
||||
autocomplete="off"
|
||||
placeholder="{{ 'Initial password' | translate }}"
|
||||
formControlName="default_password"
|
||||
[value]="user.default_password || ''"
|
||||
|
Loading…
Reference in New Issue
Block a user