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