Skip to content
Snippets Groups Projects
Commit b9e2ecbd authored by Jonathan Foucher's avatar Jonathan Foucher
Browse files
parent d0882f84
No related branches found
No related tags found
No related merge requests found
Pipeline #30646 failed
......@@ -37,9 +37,9 @@ public function withValidator(Validator $validator)
$validator->after(
function ($validator) use ($newpassword) {
if (strlen($newpassword) < 6) {
if (strlen($newpassword) < 9) {
$validator->errors()->add(
'newpassword', 'Le mot de passe doit contenir 6 caractères minimum.'
'newpassword', 'Le mot de passe doit contenir 9 caractères minimum.'
);
}
......
......@@ -30,7 +30,7 @@ public function rules()
'lastname' => 'string|nullable',
'email' => 'nullable|email',
'organization_id' => 'int|nullable',
'password' => 'string|nullable',
'password' => 'string|nullable|min:9',
'role' => 'int',
'last_login' => 'string|nullable',
'civility' => 'string|required',
......
......@@ -270,7 +270,7 @@ export default {
})
},
password: {
minLength: minLength(6),
minLength: minLength(9),
valid: function (value) {
const length = value ? value.length : 0
const containsUppercase = /[A-Z]/.test(value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment