Warning when using capitalized letter in login
This commit is contained in:
parent
01af646261
commit
7f28f2ddba
|
@ -28,6 +28,10 @@
|
||||||
<div *ngIf="formErrors.username" class="form-error">
|
<div *ngIf="formErrors.username" class="form-error">
|
||||||
{{ formErrors.username }}
|
{{ formErrors.username }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="hasUsernameUppercase()" i18n class="form-warning">
|
||||||
|
⚠️ Most email addresses do not include capital letters.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -141,6 +141,10 @@ The link will expire within 1 hour.`
|
||||||
this.accordion = instanceAboutAccordion.accordion
|
this.accordion = instanceAboutAccordion.accordion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hasUsernameUppercase () {
|
||||||
|
return this.form.value['username'].match(/[A-Z]/)
|
||||||
|
}
|
||||||
|
|
||||||
private loadExternalAuthToken (username: string, token: string) {
|
private loadExternalAuthToken (username: string, token: string) {
|
||||||
this.isAuthenticatedWithExternalAuth = true
|
this.isAuthenticatedWithExternalAuth = true
|
||||||
|
|
||||||
|
|
|
@ -123,12 +123,16 @@ code {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-error {
|
.form-error,
|
||||||
|
.form-warning {
|
||||||
display: block;
|
display: block;
|
||||||
color: $red;
|
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-error {
|
||||||
|
color: $red;
|
||||||
|
}
|
||||||
|
|
||||||
.input-error,
|
.input-error,
|
||||||
my-input-toggle-hidden ::ng-deep input {
|
my-input-toggle-hidden ::ng-deep input {
|
||||||
border-color: $red !important;
|
border-color: $red !important;
|
||||||
|
|
Loading…
Reference in New Issue