From 98adb32185b0e3a049c00787714023b905f1eed7 Mon Sep 17 00:00:00 2001
From: kontrollanten <6680299+kontrollanten@users.noreply.github.com>
Date: Sat, 1 Feb 2025 21:04:54 +0100
Subject: [PATCH] client: hide email uppercase warning
related to #6570
---
client/src/app/+login/login.component.html | 10 ----------
client/src/app/+login/login.component.ts | 13 -------------
2 files changed, 23 deletions(-)
diff --git a/client/src/app/+login/login.component.html b/client/src/app/+login/login.component.html
index 41719d86b..06eba5a9a 100644
--- a/client/src/app/+login/login.component.html
+++ b/client/src/app/+login/login.component.html
@@ -1,9 +1,3 @@
-
-
- ⚠️ Most email addresses do not include capital letters.
-
-
-
Login on {{ instanceName }}
@@ -55,8 +49,6 @@
{{ formErrors.username }}
-
-
@@ -145,8 +137,6 @@
type="email" id="forgot-password-email" i18n-placeholder placeholder="Email address" required
[(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput
>
-
-
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts
index 7a80d0e81..6be61252a 100644
--- a/client/src/app/+login/login.component.ts
+++ b/client/src/app/+login/login.component.ts
@@ -203,19 +203,6 @@ The link will expire within 1 hour.`
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) {
this.isAuthenticatedWithExternalAuth = true