* Refactor password validation and enhance localization A new PasswordSchema is introduced to handle the password validation in a centralized way and is used across all authentication schemas. The password requirements are also altered with additional special character, number, and uppercase letter checks. Error messages now utilize localization to provide dynamic error notifications. * Sign out before impersonating a user This update adds a call to sign out before impersonating a user. This is an additional measure to ensure the security of the system, accentuating the isolation of user sessions. * Refactor password validation and refine password schemas The password validation process has been restructured. The 'PasswordSchema' is now split into two separate schemas - 'PasswordSchema' and 'RefinedPasswordSchema'. The logic for validating repeating passwords has been moved into a separate function named 'refineRepeatPassword'. This streamlines the password validation process and ensures consistency across password checks.
79 lines
4.6 KiB
JSON
79 lines
4.6 KiB
JSON
{
|
|
"signUpHeading": "Create an account",
|
|
"signUp": "Sign Up",
|
|
"signInHeading": "Sign in to your account",
|
|
"signIn": "Sign In",
|
|
"getStarted": "Get started",
|
|
"updatePassword": "Update Password",
|
|
"signOut": "Sign out",
|
|
"signingIn": "Signing in...",
|
|
"signingUp": "Signing up...",
|
|
"doNotHaveAccountYet": "Do not have an account yet?",
|
|
"alreadyHaveAnAccount": "Already have an account?",
|
|
"signUpToAcceptInvite": "Please sign in/up to accept the invite",
|
|
"clickToAcceptAs": "Click the button below to accept the invite with as <b>{{email}}</b>",
|
|
"acceptInvite": "Accept invite",
|
|
"acceptingInvite": "Accepting Invite...",
|
|
"acceptInviteSuccess": "Invite successfully accepted",
|
|
"acceptInviteError": "Error encountered while accepting invite",
|
|
"acceptInviteWithDifferentAccount": "Want to accept the invite with a different account?",
|
|
"alreadyHaveAccountStatement": "I already have an account, I want to sign in instead",
|
|
"doNotHaveAccountStatement": "I do not have an account, I want to sign up instead",
|
|
"signInWithProvider": "Sign in with {{provider}}",
|
|
"signInWithPhoneNumber": "Sign in with Phone Number",
|
|
"signInWithEmail": "Sign in with Email",
|
|
"signUpWithEmail": "Sign up with Email",
|
|
"passwordHint": "Ensure it's at least 8 characters",
|
|
"repeatPasswordHint": "Type your password again",
|
|
"repeatPassword": "Repeat password",
|
|
"passwordForgottenQuestion": "Password forgotten?",
|
|
"passwordResetLabel": "Reset Password",
|
|
"passwordResetSubheading": "Enter your email address below. You will receive a link to reset your password.",
|
|
"passwordResetSuccessMessage": "Check your Inbox! We emailed you a link for resetting your Password.",
|
|
"passwordRecoveredQuestion": "Password recovered?",
|
|
"passwordLengthError": "Please provide a password with at least 6 characters",
|
|
"sendEmailLink": "Send Email Link",
|
|
"sendingEmailLink": "Sending Email Link...",
|
|
"sendLinkSuccessDescription": "Check your email, we just sent you a link. Follow the link to sign in.",
|
|
"sendLinkSuccess": "We sent you a link by email",
|
|
"sendLinkSuccessToast": "Link successfully sent",
|
|
"getNewLink": "Get a new link",
|
|
"verificationCode": "Verification Code",
|
|
"verificationCodeHint": "Enter the code we sent you by SMS",
|
|
"verificationCodeSubmitButtonLabel": "Submit Verification Code",
|
|
"sendingMfaCode": "Sending Verification Code...",
|
|
"verifyingMfaCode": "Verifying code...",
|
|
"sendMfaCodeError": "Sorry, we couldn't send you a verification code",
|
|
"verifyMfaCodeSuccess": "Code verified! Signing you in...",
|
|
"verifyMfaCodeError": "Ops! It looks like the code is not correct",
|
|
"reauthenticate": "Reauthenticate",
|
|
"reauthenticateDescription": "For security reasons, we need you to re-authenticate",
|
|
"errorAlertHeading": "Sorry, we could not authenticate you",
|
|
"emailConfirmationAlertHeading": "We sent you a confirmation email.",
|
|
"emailConfirmationAlertBody": "Welcome! Please check your email and click the link to verify your account.",
|
|
"resendLink": "Resend link",
|
|
"resendLinkSuccess": "We sent you a new link to your email! Follow the link to sign in.",
|
|
"authenticationErrorAlertHeading": "Authentication Error",
|
|
"authenticationErrorAlertBody": "Sorry, we could not authenticate you. Please try again.",
|
|
"sendEmailCode": "Get code to your Email",
|
|
"sendingEmailCode": "Sending code...",
|
|
"resetPasswordError": "Sorry, we could not reset your password. Please try again.",
|
|
"emailPlaceholder": "your@email.com",
|
|
"inviteAlertHeading": "You have been invited to join a team",
|
|
"inviteAlertBody": "Please sign in or sign up to accept the invite and join the team.",
|
|
"errors": {
|
|
"Invalid login credentials": "The credentials entered are invalid",
|
|
"User already registered": "This credential is already in use. Please try with another one.",
|
|
"Email not confirmed": "Please confirm your email address before signing in",
|
|
"default": "We have encountered an error. Please ensure you have a working internet connection and try again",
|
|
"generic": "Sorry, we weren't able to authenticate you. Please try again.",
|
|
"link": "Sorry, we encountered an error while sending your link. Please try again.",
|
|
"codeVerifierMismatch": "It looks like you're trying to sign in using a different browser than the one you used to request the sign in link. Please try again using the same browser.",
|
|
"minPasswordLength": "Password must be at least 8 characters long",
|
|
"passwordsDoNotMatch": "The passwords do not match",
|
|
"minPasswordNumbers": "Password must contain at least one number",
|
|
"minPasswordSpecialChars": "Password must contain at least one special character",
|
|
"uppercasePassword": "Password must contain at least one uppercase letter"
|
|
}
|
|
}
|