Roo/bootstrap/SecurePass.js
authorKH Lau <khlau@roojs.com>
Thu, 23 Nov 2017 04:18:36 +0000 (12:18 +0800)
committerKH Lau <khlau@roojs.com>
Thu, 23 Nov 2017 04:18:36 +0000 (12:18 +0800)
Roo/bootstrap/SecurePass.js

index f37f320..d01c7eb 100644 (file)
@@ -221,11 +221,10 @@ Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, {
             strength = 0;
         }
 
-        // allow weak password
-        //if (strength < 2) {
-        //    this.markInvalid(this.errors.TooWeak);
-        //    return false;
-        //}
+        if (strength < 2) {
+            this.markInvalid(this.errors.TooWeak);
+            return false;
+        }
         
         console.log('strength2: ' + strength);
         var pm = this.trigger.child('div/div/div').dom;