mirror of
https://github.com/kyantech/Palmr.git
synced 2025-11-02 13:03:15 +00:00
refactor: update authentication logic to support email or username
- Modified the login schema to accept either an email or username for user authentication. - Updated the AuthService to find users by email or username. - Adjusted localization files to include new labels and placeholders for email or username input across multiple languages. - Refactored the login form component to reflect the changes in the schema and improve user experience.
This commit is contained in:
@@ -202,6 +202,8 @@
|
||||
"login": {
|
||||
"welcome": "Witaj w",
|
||||
"signInToContinue": "Zaloguj się, aby kontynuować",
|
||||
"emailOrUsernameLabel": "E-mail lub nazwa użytkownika",
|
||||
"emailOrUsernamePlaceholder": "Wprowadź swój e-mail lub nazwę użytkownika",
|
||||
"emailLabel": "Adres e-mail",
|
||||
"emailPlaceholder": "Wprowadź swój adres e-mail",
|
||||
"passwordLabel": "Hasło",
|
||||
@@ -909,6 +911,7 @@
|
||||
"passwordLength": "Hasło musi mieć co najmniej 8 znaków",
|
||||
"passwordsMatch": "Hasła muszą być zgodne",
|
||||
"emailRequired": "E-mail jest wymagany",
|
||||
"emailOrUsernameRequired": "E-mail lub nazwa użytkownika jest wymagana",
|
||||
"passwordRequired": "Hasło jest wymagane",
|
||||
"passwordMinLength": "Hasło musi mieć co najmniej 6 znaków",
|
||||
"nameRequired": "Nazwa jest wymagana",
|
||||
|
||||
Reference in New Issue
Block a user