Merge pull request #4856 from GabrielInTheWorld/util-fixes

Fixes some autocompleted inputs
This commit is contained in:
Sean 2019-07-17 13:38:48 +02:00 committed by GitHub
commit ee9909308f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 3 deletions

View File

@ -31,6 +31,7 @@
<mat-form-field>
<input
matInput
autocomplete="off"
osAutofocus
[(ngModel)]="inputControl"
placeholder="{{ extensionLabel }}"

View File

@ -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"

View File

@ -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>

View File

@ -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

View File

@ -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;
/**

View File

@ -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 || ''"