mirror of
https://github.com/bitwarden/web
synced 2025-12-18 09:13:17 +00:00
relax password requirements during registration and change password
This commit is contained in:
@@ -7,11 +7,9 @@
|
||||
$scope.save = function (model, form) {
|
||||
var error = false;
|
||||
|
||||
if ($scope.model.newMasterPassword.length < 8 || !/[a-z]/i.test($scope.model.newMasterPassword) ||
|
||||
/^[a-zA-Z]*$/.test($scope.model.newMasterPassword)) {
|
||||
if ($scope.model.newMasterPassword.length < 8) {
|
||||
validationService.addError(form, 'NewMasterPasswordHash',
|
||||
'Master password must be at least 8 characters long and contain at least 1 letter and 1 number ' +
|
||||
'or special character.', true);
|
||||
'Master password must be at least 8 characters long.', true);
|
||||
error = true;
|
||||
}
|
||||
if ($scope.model.newMasterPassword !== $scope.model.confirmNewMasterPassword) {
|
||||
|
||||
Reference in New Issue
Block a user