feat(auth): unify mobile-first authentication flow
Some checks failed
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-06-23 02:07:14 +03:30
parent 1aa45beba4
commit 22b500dba5
18 changed files with 334 additions and 123 deletions

View File

@@ -27,28 +27,31 @@ export const en = {
login: {
welcome: (title: string = "Qlockifiy") => `Welcome to ${title}`,
loginTitle: "Sign in to your account",
loginDescription: "Enter your mobile number to continue with password login.",
loginCta: "Login",
createAccount: "Create account",
loginTitle: "Start using your dashboard",
loginDescription: "To begin, enter your mobile number.",
loginCta: "Login",
continue: "Continue",
createAccount: "Create account",
haveNoAccount: "Need an account?",
haveAccount: "Already have an account?",
loginOtpTitle: "Verify your login code",
passwordLoginTitle: "Login with password",
passwordLoginDescription: (mobile: string) => `Enter the password for ${mobile}`,
usePasswordInstead: "Use password instead",
useOtpInstead: "Use OTP instead",
backToMobile: "Back to mobile step",
backToPasswordLogin: "Back to password login",
forgotPassword: "Forgot password?",
useOtpInstead: "Use OTP instead",
backToMobile: "Back to mobile step",
backToPasswordLogin: "Back to password login",
backToSignupDetails: "Back to account details",
forgotPassword: "Forgot password?",
signupTitle: "Create your account",
signupDescription: "Start with your mobile number to receive a verification code.",
sendSignupCode: "Send verification code",
signupVerifyTitle: "Verify your mobile number",
continueToPassword: "Continue to password",
signupPasswordTitle: "Set your password",
signupPasswordDescription: "Choose a password for your new account.",
createAccountPasswordCta: "Create account",
signupPasswordTitle: "Set up your account",
signupPasswordDescription: "Choose a password before verifying your mobile number.",
createAccountPasswordCta: "Create account",
continueToVerifyMobile: "Continue to mobile verification",
forgotPasswordTitle: "Recover your password",
forgotPasswordDescription: "Enter your mobile number and we will send a verification code for password reset.",
sendResetCode: "Send reset code",
@@ -63,11 +66,14 @@ export const en = {
passwordRequirements:
"Password must be at least 8 characters and include at least one lowercase letter, one uppercase letter, one digit, and one symbol.",
passwordReuse: "New password must be different from your previous password.",
firstNamePlaceholder: "First name",
lastNamePlaceholder: "Last name",
enterPassword: "Enter your password",
verifyNumber: "Verify your number",
enterMobileDesc: "Enter your mobile number to continue",
signInDesc: "Sign in using your account password",
sentCodeDesc: (mobile: string) => `We sent a 5-digit code to ${mobile}`,
sentCodeDesc: (mobile: string) => `We sent a 5-digit code to ${mobile}`,
stepLabel: (current: number, total: number) => `Step ${current} of ${total}`,
mobilePlaceholder: "Mobile Number (e.g. 09123456789)",
continueWithPassword: "Continue with Password",
continueWithGoogle: "Continue with Google",
@@ -96,8 +102,9 @@ export const en = {
failedSignup: "Failed to complete sign up",
invalidCreds: "Invalid credentials",
enterOtp: "Please enter the OTP code",
invalidOtp: "Invalid OTP code",
passwordResetSuccess: "Password reset successfully.",
invalidOtp: "Invalid OTP code",
resolveMobileFailed: "We could not check this mobile number. Please try again.",
passwordResetSuccess: "Password reset successfully.",
passwordResetFailed: "Failed to reset password.",
},
throttle: {