chore: improve password error message (#6255)

chore: improve error message

chore: add password minlength & maxlength i18n

chore: check max length

fix: i18n variables

feat: add CredentialsRequirementType
This commit is contained in:
fundon
2024-03-26 07:15:06 +00:00
parent b8e6d7d6cb
commit 8ee9f6ec05
25 changed files with 354 additions and 82 deletions
+5 -3
View File
@@ -423,7 +423,7 @@
"com.affine.auth.open.affine.download-app": "Download App",
"com.affine.auth.open.affine.prompt": "Opening <1>AFFiNE</1> app now",
"com.affine.auth.open.affine.try-again": "Try again",
"com.affine.auth.page.sent.email.subtitle": "Please set a password of 8-20 characters with both letters and numbers to continue signing up with ",
"com.affine.auth.page.sent.email.subtitle": "Please set a password of {{min}}-{{max}} characters with both letters and numbers to continue signing up with ",
"com.affine.auth.page.sent.email.title": "Welcome to AFFiNE Cloud, you are almost there!",
"com.affine.auth.password": "Password",
"com.affine.auth.password.error": "Invalid password",
@@ -444,10 +444,12 @@
"com.affine.auth.sent.set.password.success.message": "Your password has saved! You can sign in AFFiNE Cloud with email and password!",
"com.affine.auth.set.email.save": "Save Email",
"com.affine.auth.set.password": "Set password",
"com.affine.auth.set.password.message": "Please set a password of 8-20 characters with both letters and numbers to continue signing up with ",
"com.affine.auth.set.password.message": "Please set a password of {{min}}-{{max}} characters with both letters and numbers to continue signing up with ",
"com.affine.auth.set.password.message.minlength": "Minimum {{min}} characters",
"com.affine.auth.set.password.message.maxlength": "Maximum {{max}} characters",
"com.affine.auth.set.password.page.success": "Password set successful",
"com.affine.auth.set.password.page.title": "Set your AFFiNE Cloud password",
"com.affine.auth.set.password.placeholder": "Set a password at least 8 letters long",
"com.affine.auth.set.password.placeholder": "Set a password at least {{min}} letters long",
"com.affine.auth.set.password.placeholder.confirm": "Confirm password",
"com.affine.auth.set.password.save": "Save Password",
"com.affine.auth.sign-out.confirm-modal.cancel": "Cancel",