Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement minimum length for passwords in account creation #4353

Merged
merged 12 commits into from
Aug 13, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<PasswordField
v-model="form.password1"
:label="$tr('passwordLabel')"
:additionalRules="passwordValidationRules"
/>
<PasswordField
v-model="form.password2"
Expand Down Expand Up @@ -241,6 +242,9 @@
passwordConfirmRules() {
return [value => (this.form.password1 === value ? true : this.$tr('passwordMatchMessage'))];
},
passwordValidationRules() {
return [value =>(this.form.password1.length >= 8 ? true : this.$tr('passwordValidationMessage'))];

Check failure on line 246 in contentcuration/contentcuration/frontend/accounts/pages/Create.vue

View workflow job for this annotation

GitHub Actions / Frontend linting

'value' is defined but never used
bjester marked this conversation as resolved.
Show resolved Hide resolved
},
tosAndPolicyRules() {
return [value => (value ? true : this.$tr('ToSRequiredMessage'))];
},
Expand Down Expand Up @@ -465,6 +469,7 @@
passwordLabel: 'Password',
confirmPasswordLabel: 'Confirm password',
passwordMatchMessage: "Passwords don't match",
passwordValidationMessage: "Password should be atleast 8 characters long",
cerdo03 marked this conversation as resolved.
Show resolved Hide resolved

// Usage question
usageLabel: 'How do you plan on using Kolibri Studio (check all that apply)',
Expand Down
Loading