From 113f6614c08fe487937b81dc30e21ac789572b30 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Tue, 12 Mar 2024 09:01:26 -0300
Subject: fix #8170

---
 packages/bank-ui/src/pages/LoginForm.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'packages/bank-ui/src/pages/LoginForm.tsx')

diff --git a/packages/bank-ui/src/pages/LoginForm.tsx b/packages/bank-ui/src/pages/LoginForm.tsx
index a097417c3..337cfc8b1 100644
--- a/packages/bank-ui/src/pages/LoginForm.tsx
+++ b/packages/bank-ui/src/pages/LoginForm.tsx
@@ -29,6 +29,7 @@ import { useSessionState } from "../hooks/session.js";
 import { RouteDefinition } from "../route.js";
 import { undefinedIfEmpty } from "../utils.js";
 import { doAutoFocus } from "./PaytoWireTransferForm.js";
+import { USERNAME_REGEX } from "./RegistrationPage.js";
 
 /**
  * Collect and submit login data.
@@ -63,9 +64,9 @@ export function LoginForm({
   const errors = undefinedIfEmpty({
     username: !username
       ? i18n.str`Missing username`
-      : // : !USERNAME_REGEX.test(username)
-        //   ? i18n.str`Use letters and numbers only, and start with a lowercase letter`
-        undefined,
+      : !USERNAME_REGEX.test(username)
+        ? i18n.str`Use letters, numbers or any of these characters: - . _ ~`
+        : undefined,
     password: !password ? i18n.str`Missing password` : undefined,
   });
 
-- 
cgit v1.2.3

