X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=security%2Fruntime%2Forg.argeo.security.ria%2Fsrc%2Fargeo-ria-lib%2Fsecurity%2Fclass%2Forg%2Fargeo%2Fsecurity%2Fria%2Fcomponents%2FPasswordCredentialImpl.js;h=a7b648b230e5d9f7623ac67c9543ce769ca1c8a4;hb=81ad0fe524583322157b193ed1115c319f356bcd;hp=238cc7ef106d6e1be77eaa5ebfd90a1f52535a1a;hpb=06f80b7b50619d1c997e2660eddb32a584cfc8a8;p=lgpl%2Fargeo-commons.git diff --git a/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/PasswordCredentialImpl.js b/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/PasswordCredentialImpl.js index 238cc7ef1..a7b648b23 100644 --- a/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/PasswordCredentialImpl.js +++ b/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/PasswordCredentialImpl.js @@ -37,7 +37,7 @@ qx.Class.define("org.argeo.security.ria.components.PasswordCredentialImpl", { }, getData : function(format){ var encoded = null; - if(this.pass1.getValue() != ""){ + if(this.pass1.getValue() != null && this.pass1.getValue() != ""){ var encoder = this.getEncoderCallback(); encoded = encoder(this.pass1.getValue()); } @@ -48,12 +48,13 @@ qx.Class.define("org.argeo.security.ria.components.PasswordCredentialImpl", { this.pass2.setValue(""); }, validate : function(){ - if(this.pass1.getValue() != this.pass2.getValue() || this.pass1.getValue() == ""){ - // TODO WHEN TESTING 0.8.3 - //this.pass1.setValid(false); - //this.pass2.setValid(false); + if(this.pass1.getValue() != this.pass2.getValue()){ + this.pass1.setValid(false); + this.pass2.setValid(false); this.setValid(false); }else{ + this.pass1.setValid(true); + this.pass2.setValid(true); this.setValid(true); } return this.getValid();