parent
94a7879d7d
commit
98adb32185
|
@ -1,9 +1,3 @@
|
||||||
<ng-template #uppercaseWarning>
|
|
||||||
<div i18n class="form-warning">
|
|
||||||
⚠️ Most email addresses do not include capital letters.
|
|
||||||
</div>
|
|
||||||
</ng-template>
|
|
||||||
|
|
||||||
<div class="margin-content">
|
<div class="margin-content">
|
||||||
<h1 class="title-page" i18n>Login on {{ instanceName }}</h1>
|
<h1 class="title-page" i18n>Login on {{ instanceName }}</h1>
|
||||||
|
|
||||||
|
@ -55,8 +49,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="formErrors.username" class="form-error" role="alert">{{ formErrors.username }}</div>
|
<div *ngIf="formErrors.username" class="form-error" role="alert">{{ formErrors.username }}</div>
|
||||||
|
|
||||||
<ng-template *ngIf="hasUsernameUppercase()" [ngTemplateOutlet]="uppercaseWarning"></ng-template>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -145,8 +137,6 @@
|
||||||
type="email" id="forgot-password-email" i18n-placeholder placeholder="Email address" required
|
type="email" id="forgot-password-email" i18n-placeholder placeholder="Email address" required
|
||||||
[(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput
|
[(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput
|
||||||
>
|
>
|
||||||
|
|
||||||
<ng-template *ngIf="hasForgotPasswordEmailUppercase()" [ngTemplateOutlet]="uppercaseWarning"></ng-template>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -203,19 +203,6 @@ The link will expire within 1 hour.`
|
||||||
this.accordion = instanceAboutAccordion.accordion
|
this.accordion = instanceAboutAccordion.accordion
|
||||||
}
|
}
|
||||||
|
|
||||||
hasUsernameUppercase () {
|
|
||||||
const username = this.form.value['username']
|
|
||||||
if (!username) return false
|
|
||||||
|
|
||||||
return username.match(/[A-Z]/)
|
|
||||||
}
|
|
||||||
|
|
||||||
hasForgotPasswordEmailUppercase () {
|
|
||||||
if (!this.forgotPasswordEmail) return false
|
|
||||||
|
|
||||||
return this.forgotPasswordEmail.match(/[A-Z]/)
|
|
||||||
}
|
|
||||||
|
|
||||||
private loadExternalAuthToken (username: string, token: string) {
|
private loadExternalAuthToken (username: string, token: string) {
|
||||||
this.isAuthenticatedWithExternalAuth = true
|
this.isAuthenticatedWithExternalAuth = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue