Implemented email verification

This commit is contained in:
2024-04-12 13:52:16 +03:00
parent 78107d4ec7
commit b1ad7b5c3e
51 changed files with 604 additions and 213 deletions

10
locales/custom.en.ts Normal file
View File

@@ -0,0 +1,10 @@
export default {
single: 'I am the only one',
a: {
b: {
c: {
d: 'I am custom english {man}',
},
},
},
} as const

10
locales/custom.uk.ts Normal file
View File

@@ -0,0 +1,10 @@
export default {
single: 'Я єдиний',
a: {
b: {
c: {
d: 'Я звичайний український {man}',
},
},
},
} as const

View File

@@ -15,6 +15,10 @@ export default {
header_label: 'Create an account',
back_button_label: 'Already have an account?',
},
verification: {
header_label: 'Confirming your account',
back_button_label: 'Back to login',
},
error: {
email_in_use: 'Email already in use with different provider!',
header_label: 'Oops! Something went wrong!',
@@ -35,11 +39,21 @@ export default {
},
},
schema: {
message: {
email_required: 'Invalid email address',
password_required: `Password is required`,
name_required: `Name is required`,
password_min: `Password must be at least {min} characters`,
password: {
required: 'Password is required',
strength: {
acme: 'Password must contain at least a single lowercase, uppercase, digit and special character. The length must be between {min} and {max} characters.',
},
length: {
min: 'Password must be at least {min} characters',
max: 'Password must be maximally {max} characters',
},
},
email: {
required: 'Invalid email address',
},
name: {
required: `Name is required`,
},
},
form: {

View File

@@ -15,6 +15,11 @@ export default {
header_label: 'Реєстрація облікового запису',
back_button_label: 'Вже маєте обліковий запис?',
},
verification: {
header_label: 'Підтвердження вашого облікового запису',
back_button_label: 'Повернутися до форми авторизації',
},
error: {
email_in_use: 'Електронна пошта вже використовується з іншим логін-провайдером!',
header_label: 'Отакої! Щось пішло не так!',
@@ -35,11 +40,21 @@ export default {
},
},
schema: {
message: {
email_required: 'Невірна адреса електронної пошти',
password_required: `Необхідно ввести пароль`,
name_required: `Необхідно вказати ім'я`,
password_min: `Пароль має містити принаймні {min} символів`,
password: {
required: 'Необхідно ввести пароль',
length: {
min: 'Пароль має містити принаймні {min} символів',
max: 'Максимальна кількість символів у паролі: {max}',
},
strength: {
acme: 'Пароль повинен містити принаймні один малий, приписний, цифровий та спеціальний символ. Довжина паролю має бути від {min} до {max} символів.',
},
},
email: {
required: 'Невірна адреса електронної пошти',
},
name: {
required: `Необхідно вказати ім'я`,
},
},
form: {