From 7f28f2ddbaeecf451d501e99ded0408c14a33600 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 20 Jul 2021 13:47:49 +0200 Subject: Warning when using capitalized letter in login --- client/src/app/+login/login.component.html | 4 ++++ client/src/app/+login/login.component.ts | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'client/src/app/+login') diff --git a/client/src/app/+login/login.component.html b/client/src/app/+login/login.component.html index 5f5b0f565..27793ff0c 100644 --- a/client/src/app/+login/login.component.html +++ b/client/src/app/+login/login.component.html @@ -28,6 +28,10 @@
{{ formErrors.username }}
+ +
+ ⚠️ Most email addresses do not include capital letters. +
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts index d8ad49081..9731383af 100644 --- a/client/src/app/+login/login.component.ts +++ b/client/src/app/+login/login.component.ts @@ -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 -- cgit v1.2.3