8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f98fa3 commit 07708bbCopy full SHA for 07708bb
site/src/pages/SetupPage/SetupPageView.tsx
@@ -30,6 +30,8 @@ export const Language = {
30
usernameLabel: "Username",
31
emailInvalid: "Please enter a valid email address.",
32
emailRequired: "Please enter an email address.",
33
+ passwordTooShort: "Password should be at least 6 characters.",
34
+ passwordTooLong: "Password should be no more than 64 characters.",
35
passwordRequired: "Please enter a password.",
36
create: "Create account",
37
welcomeMessage: <>Welcome to Coder</>,
@@ -54,7 +56,10 @@ const validationSchema = Yup.object({
54
56
.trim()
55
57
.email(Language.emailInvalid)
58
.required(Language.emailRequired),
- password: Yup.string().required(Language.passwordRequired),
59
+ password: Yup.string()
60
+ .min(6, Language.passwordTooShort)
61
+ .max(64, Language.passwordTooLong)
62
+ .required(Language.passwordRequired),
63
username: nameValidator(Language.usernameLabel),
64
trial: Yup.bool(),
65
trial_info: Yup.object().when("trial", {
0 commit comments