projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e1ae3ce
)
widgets/SecurePass.js
author
Edward
<edward@roojs.com>
Thu, 11 Jun 2015 05:49:06 +0000
(13:49 +0800)
committer
Edward
<edward@roojs.com>
Thu, 11 Jun 2015 05:49:06 +0000
(13:49 +0800)
widgets/SecurePass.js
patch
|
blob
|
history
diff --git
a/widgets/SecurePass.js
b/widgets/SecurePass.js
index
0584e41
..
bc1c262
100644
(file)
--- 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;