},\r
getData : function(format){\r
var encoded = null;\r
- if(this.pass1.getValue() != ""){\r
+ if(this.pass1.getValue() != null && this.pass1.getValue() != ""){\r
var encoder = this.getEncoderCallback();\r
encoded = encoder(this.pass1.getValue()); \r
}\r
this.pass2.setValue(""); \r
},\r
validate : function(){\r
- if(this.pass1.getValue() != this.pass2.getValue() || this.pass1.getValue() == ""){\r
- // TODO WHEN TESTING 0.8.3\r
- //this.pass1.setValid(false);\r
- //this.pass2.setValid(false); \r
+ if(this.pass1.getValue() != this.pass2.getValue()){\r
+ this.pass1.setValid(false);\r
+ this.pass2.setValid(false); \r
this.setValid(false);\r
}else{\r
+ this.pass1.setValid(true);\r
+ this.pass2.setValid(true); \r
this.setValid(true);\r
}\r
return this.getValid();\r