translation & clean code

This commit is contained in:
Chneemann 2024-05-21 08:37:40 +02:00
parent 1e3c45fb97
commit d046718c30
5 changed files with 6 additions and 4 deletions

View file

@ -22,7 +22,6 @@ import { BtnBackComponent } from '../../../shared/components/buttons/btn-back/bt
FooterComponent, FooterComponent,
HeaderComponent, HeaderComponent,
TranslateModule, TranslateModule,
LoadingDialogComponent,
BtnBackComponent, BtnBackComponent,
], ],
templateUrl: './forgot-pw.component.html', templateUrl: './forgot-pw.component.html',
@ -43,7 +42,7 @@ export class ForgotPwComponent {
onSubmit(ngForm: NgForm) { onSubmit(ngForm: NgForm) {
this.sharedService.isBtnDisabled = true; this.sharedService.isBtnDisabled = true;
if (ngForm.submitted && ngForm.form.valid) { if (ngForm.submitted && ngForm.form.valid) {
this.loginSerivce.passwordReset(this.pwResetData.mail); this.loginSerivce.passwordReset(this.pwResetData.mail.toLowerCase());
} }
} }

View file

@ -22,7 +22,6 @@ import { Subscription } from 'rxjs';
FooterComponent, FooterComponent,
HeaderComponent, HeaderComponent,
TranslateModule, TranslateModule,
LoadingDialogComponent,
], ],
templateUrl: './pw-reset.component.html', templateUrl: './pw-reset.component.html',
styleUrl: './pw-reset.component.scss', styleUrl: './pw-reset.component.scss',

View file

@ -73,7 +73,9 @@
} }
</div> </div>
<div class="forgot-pw"> <div class="forgot-pw">
<a routerLink="/forgot-pw">Passwort vergessen?</a> <a routerLink="/forgot-pw">{{
"login.forgotPassword" | translate
}}</a>
</div> </div>
</div> </div>
<div class="google-button"> <div class="google-button">

View file

@ -3,6 +3,7 @@
"login": "Einloggen", "login": "Einloggen",
"email": "E-Mail", "email": "E-Mail",
"password": "Passwort", "password": "Passwort",
"forgotPassword": "Passwort vergessen?",
"google": "Einloggen mit Google", "google": "Einloggen mit Google",
"guest": "Gastzugang", "guest": "Gastzugang",
"errorMail0": "Sie müssen eine E-Mail Adresse eingeben!", "errorMail0": "Sie müssen eine E-Mail Adresse eingeben!",

View file

@ -3,6 +3,7 @@
"login": "Log in", "login": "Log in",
"email": "Email", "email": "Email",
"password": "Password", "password": "Password",
"forgotPassword": "Forgotten password?",
"google": "Sign in with Google", "google": "Sign in with Google",
"guest": "Guest Log in", "guest": "Guest Log in",
"errorMail0": "You must enter a mail!", "errorMail0": "You must enter a mail!",