From 6cf898e6c8bf9997df9732ee7a07af0cd4f14c77 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 11 Jun 2015 13:49:06 +0800 Subject: [PATCH] widgets/SecurePass.js --- widgets/SecurePass.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/widgets/SecurePass.js b/widgets/SecurePass.js index 0584e41d..bc1c262b 100644 --- a/widgets/SecurePass.js +++ b/widgets/SecurePass.js @@ -161,9 +161,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, { }, // private validateValue: function (value) { - if(this.insecure){ - return true; - } + if (!Ext.form.TextField.superclass.validateValue.call(this, value)) { return false; } @@ -176,6 +174,11 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, { this.markInvalid(this.errors.PwdEmpty); return false; } + + if(this.insecure){ + return true; + } + if ('[\x21-\x7e]*'.match(value)) { this.markInvalid(this.errors.PwdBadChar); return false; -- 2.39.2