Roo/bootstrap/SecurePass.js
authorAlan Knowles <alan@roojs.com>
Wed, 30 Dec 2020 06:34:35 +0000 (14:34 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 30 Dec 2020 06:34:35 +0000 (14:34 +0800)
Roo/bootstrap/SecurePass.js

index 8fe3fec..c770a79 100644 (file)
@@ -208,8 +208,8 @@ Roo.extend(Roo.bootstrap.SecurePass, Roo.bootstrap.Input, {
         if(this.insecure){
             return true;
         }
-        
-        if (value.match(/[\x21-\x7e]*/)) {
+         
+        if (!value.match(/[\x21-\x7e]*/)) {
             this.markInvalid(this.errors.PwdBadChar);
             this.errorMsg = this.errors.PwdBadChar;
             return false;