diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json
index 3017d40..6a8d083 100644
--- a/public/locales/de/translation.json
+++ b/public/locales/de/translation.json
@@ -30,12 +30,9 @@
"usernamePlaceholder": "Geben Sie Ihren Anzeigename ein",
"usernamePlaceholderThirdPerson": "Geben Sie den Anzeigename ein",
"usernameInfo": "Der Anzeigename wird verwendet, um Sie im Dashboard anzuzeigen.",
- "accountName": "Benutzername",
- "accountNamePlaceholder": "Geben Sie Ihren Benutzernamen ein",
- "accountNamePlaceholderThirdPerson": "Geben Sie den Benutzernamen ein",
- "accountNameInfo": "Der Benutzername wird verwendet, um sich anzumelden.",
"email": "E-Mail",
"emailPlaceholder": "Geben Sie Ihre E-Mail ein",
+ "emailPlaceholderThirdPerson": "Geben Sie die E-Mail ein",
"password": "Passwort",
"passwordPlaceholder": "Geben Sie Ihr Passwort ein",
"noDataFound": "Keine Einträge gefunden",
@@ -53,11 +50,10 @@
"inputRules": {
"usernameRequired": "Anzeigename ist erforderlich",
"usernameMinLength": "Anzeigename muss mindestens {{minLength}} Zeichen lang sein",
- "accountNameRequired": "Benutzername ist erforderlich",
- "accountNameMinLength": "Benutzername muss mindestens {{minLength}} Zeichen lang sein",
- "accountNameTaken": "Benutzername ist bereits vergeben",
+ "emailMinLength": "E-Mail muss mindestens {{minLength}} Zeichen lang sein",
"emailRequired": "E-Mail ist erforderlich",
"emailInvalid": "E-Mail ist ungültig",
+ "emailTaken": "E-Mail wird bereits verwendet",
"passwordRequired": "Passwort ist erforderlich",
"passwordMinLength": "Passwort muss mindestens {{minLength}} Zeichen lang sein",
"calendarMaxFutureBookingDaysRequired": "Maximaler Buchungszeitraum ist erforderlich",
@@ -170,7 +166,11 @@
},
"signUp": {
"button": "Registrieren",
- "alreadyHaveAccount": "Sie haben bereits ein Konto?"
+ "alreadyHaveAccount": "Sie haben bereits ein Konto?",
+ "pendingEmailVerification": {
+ "title": "E-Mail-Verifizierung ausstehend",
+ "description": "Bitte überprüfen Sie Ihr E-Mail-Postfach und klicken Sie auf den Link in der E-Mail, um Ihre E-Mail-Adresse zu verifizieren."
+ }
},
"request": {
"400": {
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json
index 7a5ea59..762bfda 100644
--- a/public/locales/en/translation.json
+++ b/public/locales/en/translation.json
@@ -30,12 +30,9 @@
"usernamePlaceholder": "Enter your username",
"usernameInfo": "The display name is used to display you in the dashboard.",
"usernamePlaceholderThirdPerson": "Enter the username",
- "accountName": "Account name",
- "accountNamePlaceholder": "Enter your account name",
- "accountNamePlaceholderThirdPerson": "Enter the account name",
- "accountNameInfo": "The account name is used to log in.",
"email": "Email",
"emailPlaceholder": "Enter your email",
+ "emailPlaceholderThirdPerson": "Enter the email",
"password": "Password",
"passwordPlaceholder": "Enter your password",
"noDataFound": "No data found",
@@ -53,11 +50,10 @@
"inputRules": {
"usernameRequired": "Please enter your username",
"usernameMinLength": "Username must be at least {{minLength}} characters",
- "accountNameRequired": "Please enter your account name",
- "accountNameMinLength": "Account name must be at least {{minLength}} characters",
- "accountNameTaken": "Account name already exists",
+ "emailMinLength": "Email must be at least {{minLength}} characters",
"emailRequired": "Please enter your email",
"emailInvalid": "Please enter a valid email",
+ "emailTaken": "This email is already taken",
"passwordRequired": "Please enter your password",
"passwordMinLength": "Password must be at least {{minLength}} characters",
"calendarMaxFutureBookingDaysRequired": "Please enter the max. future booking days",
@@ -171,6 +167,10 @@
"signUp": {
"button": "Sign up",
"alreadyHaveAccount": "Already have an account?",
+ "pendingEmailVerification": {
+ "title": "Email verification pending",
+ "description": "Please check your email inbox and click on the link in the e-mail to verify your e-mail address."
+ },
"request": {
"400": {
"title": "Sign up failed",
@@ -332,13 +332,7 @@
"confirmNewPasswordPlaceholder": "Confirm your new password",
"confirmNewPasswordMismatch": "The new password do not match",
"button": "Change password",
- "buttonInfo": "After changing your password, you will be logged out and have to log in again.",
- "request": {
- "400": {
- "title": "Password incorrect",
- "description": "Please check your password and try again."
- }
- }
+ "buttonInfo": "After changing your password, you will be logged out and have to log in again."
},
"yourSessions": {
"cardTitle": "Your sessions",
diff --git a/src/Components/MyFormInputs/index.js b/src/Components/MyFormInputs/index.js
index bbeb4ae..b1a09d4 100644
--- a/src/Components/MyFormInputs/index.js
+++ b/src/Components/MyFormInputs/index.js
@@ -1,5 +1,5 @@
import { Form, Input, InputNumber, Skeleton } from "antd";
-import { Constants, myFetch } from "../../utils";
+import { Constants, isEmailValid, myFetch } from "../../utils";
import { useRef } from "react";
import { useTranslation } from "react-i18next";
@@ -36,48 +36,6 @@ export function MyUsernameFormInput({
);
}
-export function MyAccountNameFormInput({
- propsFormItem,
- propsInput,
- disableAccountNameCheck,
- hasFeedback,
- showSkeleton,
- thirdPerson,
-}) {
- const { t } = useTranslation();
-
- return (
-