From: Alan Knowles Date: Wed, 30 Dec 2020 06:34:35 +0000 (+0800) Subject: Roo/bootstrap/SecurePass.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=aa69aec8e4b5b7760b71a583f5306c3e93fe5487 Roo/bootstrap/SecurePass.js --- diff --git a/Roo/bootstrap/SecurePass.js b/Roo/bootstrap/SecurePass.js index 8fe3fec267..c770a79b95 100644 --- a/Roo/bootstrap/SecurePass.js +++ b/Roo/bootstrap/SecurePass.js @@ -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;