mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-03 18:28:13 +01:00
relax password requirements during registration
This commit is contained in:
parent
1426719406
commit
48ca5e4696
@ -21,10 +21,8 @@
|
|||||||
toastr.error('Master password is required.', 'Errors have occurred');
|
toastr.error('Master password is required.', 'Errors have occurred');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (model.masterPassword.length < 8 || !/[a-z]/i.test(model.masterPassword) ||
|
if (model.masterPassword.length < 8) {
|
||||||
/^[a-zA-Z]*$/.test(model.masterPassword)) {
|
toastr.error('Master password must be at least 8 characters long.', 'Errors have occurred');
|
||||||
toastr.error('Master password must be at least 8 characters long and contain at least 1 letter and 1 number ' +
|
|
||||||
'or special character.', 'Errors have occurred');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (model.masterPassword !== model.masterPasswordRetype) {
|
if (model.masterPassword !== model.masterPasswordRetype) {
|
||||||
|
Loading…
Reference in New Issue
Block a user