Previously, signing up gave immediate access to the app. Now, unconfirmed users are redirected to a verification page where they can resend the confirmation email. - After signup, the user is routed to `/auth/verify-email` instead of the dashboard - After login, unconfirmed users are redirected to the verification page - The dashboard route guard catches unconfirmed users and redirects them - `active_for_authentication?` is removed from the sessions controller so unconfirmed users can authenticate — the frontend gates access instead - If the user visits the verification page after already confirming, they're automatically redirected to the dashboard - No session is issued until the user is verified <details><summary>Demo</summary> <p> #### Fresh Signup https://github.com/user-attachments/assets/abb735e5-7c8e-44a2-801c-96d9e4823e51 #### Google Fresh Signup https://github.com/user-attachments/assets/ab9e389a-a604-4a9d-b492-219e6d94ee3f #### Create new account from Dashboard https://github.com/user-attachments/assets/c456690d-1946-4e0b-834b-ad8efcea8369 </p> </details> --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
58 lines
2.4 KiB
JSON
58 lines
2.4 KiB
JSON
{
|
|
"REGISTER": {
|
|
"TRY_WOOT": "Create an account",
|
|
"GET_STARTED": "Get started with Chatwoot",
|
|
"TITLE": "Register",
|
|
"TESTIMONIAL_HEADER": "All it takes is one step to move forward",
|
|
"TESTIMONIAL_CONTENT": "You're one step away from engaging your customers, retaining them and finding new ones.",
|
|
"TERMS_ACCEPT": "By creating an account, you agree to our <a href=\"https://www.chatwoot.com/terms\">T & C</a> and <a href=\"https://www.chatwoot.com/privacy-policy\">Privacy policy</a>",
|
|
"OAUTH": {
|
|
"GOOGLE_SIGNUP": "Sign up with Google"
|
|
},
|
|
"COMPANY_NAME": {
|
|
"LABEL": "Company name",
|
|
"PLACEHOLDER": "Enter your company name. E.g., Wayne Enterprises",
|
|
"ERROR": "Company name is too short."
|
|
},
|
|
"FULL_NAME": {
|
|
"LABEL": "Full name",
|
|
"PLACEHOLDER": "Enter your full name. E.g., Bruce Wayne",
|
|
"ERROR": "Full name is too short."
|
|
},
|
|
"EMAIL": {
|
|
"LABEL": "Work email",
|
|
"PLACEHOLDER": "Enter your work email address. E.g., bruce{'@'}wayne{'.'}enterprises",
|
|
"ERROR": "Please enter a valid work email address."
|
|
},
|
|
"PASSWORD": {
|
|
"LABEL": "Password",
|
|
"PLACEHOLDER": "Password",
|
|
"ERROR": "Password is too short.",
|
|
"IS_INVALID_PASSWORD": "Password should contain atleast 1 uppercase letter, 1 lowercase letter, 1 number and 1 special character.",
|
|
"REQUIREMENTS_LENGTH": "At least 6 characters long",
|
|
"REQUIREMENTS_UPPERCASE": "At least one uppercase letter",
|
|
"REQUIREMENTS_LOWERCASE": "At least one lowercase letter",
|
|
"REQUIREMENTS_NUMBER": "At least one number",
|
|
"REQUIREMENTS_SPECIAL": "At least one special character"
|
|
},
|
|
"CONFIRM_PASSWORD": {
|
|
"LABEL": "Confirm password",
|
|
"PLACEHOLDER": "Confirm password",
|
|
"ERROR": "Passwords do not match."
|
|
},
|
|
"API": {
|
|
"SUCCESS_MESSAGE": "Registration Successful",
|
|
"ERROR_MESSAGE": "Could not connect to Woot server. Please try again."
|
|
},
|
|
"SUBMIT": "Create account",
|
|
"HAVE_AN_ACCOUNT": "Already have an account?",
|
|
"VERIFY_EMAIL": {
|
|
"TITLE": "Check your inbox",
|
|
"DESCRIPTION": "We sent a verification link to {email}. Click the link to verify your email and get started.",
|
|
"RESEND": "Resend verification email",
|
|
"RESEND_SUCCESS": "Verification email sent. Please check your inbox.",
|
|
"RESEND_ERROR": "Could not send verification email. Please try again."
|
|
}
|
|
}
|
|
}
|