added 2FA

This commit is contained in:
2024-04-26 22:16:21 +03:00
parent 53cadc289a
commit f17a002ac6
38 changed files with 1036 additions and 414 deletions

View File

@@ -45,17 +45,20 @@ export default {
missing_token: 'Missing token!',
invalid_token: 'Invalid token!',
expired_token: 'Token has expired!',
invalid_code: 'Invalid code!',
expired_code: 'Code has expired!',
},
},
email: {
success: {
confirmation_email_sent: 'Confirmation email sent!',
reset_email_sent: 'A password reset letter has been sent to the specified email address!',
_2FA_email_sent: '2FA email sent!',
},
error: {
verification_email_sending_error: 'Could not send verification email!',
reset_password_sending_error: 'Could not send reset password email!',
_2FA_email_sending_error: 'Could not send 2FA email!',
},
},
} as const

View File

@@ -5,6 +5,11 @@ export default {
confirm_password: 'Confirm password',
login: 'Login',
name: 'Name',
two_factor: 'Two Factor Authentication Code',
},
button: {
two_factor: 'Confirm',
login: 'Login',
},
placeholder: {
email: 'dead.end@acme.com',

View File

@@ -15,4 +15,7 @@ export default {
name: {
required: `Name is required`,
},
two_factor: {
length: 'Code must contain exactly {length} digits',
},
} as const