Skip to content

Commit 30ea005

Browse files
author
Olga Kopylova
committed
MAGETWO-33443: Password strength validator on installation wizard works in over-exacting mode
- fixed regex for minimum password requirements
1 parent df4942d commit 30ea005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/pub/magento/setup/create-admin-account.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ angular.module('create-admin-account', ['ngStorage'])
7171
require: "ngModel",
7272
link: function(scope, elm, attrs, ctrl){
7373
var validator = function(value){
74-
var minReg = /^(?=.*\d)(?=.*[a-zA-Z])[a-zA-Z0-9]{6,}$/,
74+
var minReg = /^(?=.*\d)(?=.*[a-zA-Z]).{6,}$/,
7575
isValid = typeof value === 'string' && minReg.test(value);
7676

7777
ctrl.$setValidity('checkPassword', isValid);

0 commit comments

Comments
 (0)