This commit is contained in:
2024-10-05 00:15:13 +02:00
commit 0c5fb0e1c1
145 changed files with 23168 additions and 0 deletions
@@ -0,0 +1,36 @@
<div class="flex column fill middle">
<form [formGroup]="passwordForm" (ngSubmit)="setPassword()">
<mat-card>
<mat-card-content>
<mat-card-title>{{'password' | i18n}}</mat-card-title>
<mat-form-field>
<mat-label>{{'password.old' | i18n}}</mat-label>
<input matInput formControlName="old" type="password">
<mat-error *ngFor="let error of passwordForm.get('old').errors | keyvalue">
{{'password.error.' + error.key | i18n}}
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>{{'password.new' | i18n}}</mat-label>
<input matInput formControlName="password" type="password">
<mat-error *ngFor="let error of passwordForm.get('password').errors | keyvalue">
{{'password.error.' + error.key | i18n}}
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>{{'password.repeat' | i18n}}</mat-label>
<input matInput formControlName="password2" type="password">
<mat-error *ngFor="let error of passwordForm.get('password2').errors | keyvalue">
{{'password.error.' + error.key | i18n}}
</mat-error>
</mat-form-field>
</mat-card-content>
<mat-card-actions>
<button type="submit" *ngIf="!working" mat-raised-button color="primary" [disabled]="passwordForm.invalid">
{{'password.update' | i18n}}
</button>
<a *ngIf="passwordSuccess" mat-button color="primary">{{'password.success' | i18n}}</a>
</mat-card-actions>
</mat-card>
</form>
</div>