From be58e3c9c04050e0fba510136e18c032b8e8551e Mon Sep 17 00:00:00 2001 From: KH Lau Date: Thu, 23 Nov 2017 12:05:45 +0800 Subject: [PATCH] Roo/bootstrap/SecurePass.js --- Roo/bootstrap/SecurePass.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Roo/bootstrap/SecurePass.js b/Roo/bootstrap/SecurePass.js index 5c3446e644..d27994eccb 100644 --- a/Roo/bootstrap/SecurePass.js +++ b/Roo/bootstrap/SecurePass.js @@ -219,11 +219,13 @@ Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, { } else { 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; -- 2.39.2