Skip to content

Commit 7ba8da8

Browse files
author
Olga Kopylova
committed
MAGETWO-33443: Password strength validator on installation wizard works in over-exacting mode
- fixed levels of password strength
1 parent 91f81c3 commit 7ba8da8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ angular.module('create-admin-account', ['ngStorage'])
2525
$scope.admin.passwordStatus.class = 'good';
2626
$scope.admin.passwordStatus.label = 'Good';
2727
} else if (p.length > 6 && p.match(/[\d]+/) && p.match(/[a-zA-Z]+/)) {
28+
$scope.admin.passwordStatus.class = 'fair';
29+
$scope.admin.passwordStatus.label = 'Fair';
30+
} else if (p.length > 6) {
2831
$scope.admin.passwordStatus.class = 'weak';
2932
$scope.admin.passwordStatus.label = 'Weak';
30-
} else if (p.length > 6) {
31-
$scope.admin.passwordStatus.class = 'to-short';
32-
$scope.admin.passwordStatus.label = 'Too Short';
3333
} else {
34-
$scope.admin.passwordStatus.class = 'none';
35-
$scope.admin.passwordStatus.label = 'None';
34+
$scope.admin.passwordStatus.class = 'too-short';
35+
$scope.admin.passwordStatus.label = 'Too Short';
3636
}
3737
};
3838

0 commit comments

Comments
 (0)