From aa69aec8e4b5b7760b71a583f5306c3e93fe5487 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 30 Dec 2020 14:34:35 +0800 Subject: [PATCH] Roo/bootstrap/SecurePass.js --- Roo/bootstrap/SecurePass.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2