fix match for bad chars
[Pman.Core] / widgets / SecurePass.js
index 8190c7d..732db5b 100644 (file)
@@ -179,7 +179,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
             return true;
         }
         
-        if (value.match(/[\x21-\x7e]*/)) {
+        if (!value.match(/[\x21-\x7e]+/)) {
             this.markInvalid(this.errors.PwdBadChar);
             return false;
         }