]> source.dussan.org Git - archiva.git/commitdiff
fix issue on dynamic rememberme checkbox
authorOlivier Lamy <olamy@apache.org>
Wed, 19 Dec 2012 22:38:30 +0000 (22:38 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 19 Dec 2012 22:38:30 +0000 (22:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1424187 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js

index 39c127e5078b59791e8bbec39e2958080ad5c0a7..314a1103b5272119a6093804c76b51a857993680 100644 (file)
@@ -368,12 +368,14 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,purl) {
 
     var rememberMe=window.redbackRuntimeConfiguration.findPropertyValue('security.rememberme.enabled');
     $.log("rememberMe:"+rememberMe);
-    if (rememberMe!='true'){
+    if (rememberMe=='false'){
       $("#user-login-form-rememberme-label" ).hide();
       $("#user-login-form-rememberme" ).attr("disabled","true");
       if($("#user-login-form-rememberme" ).get(0 ).checked){
         $("#user-login-form-rememberme" ).get(0 ).checked=false;
       }
+      $("#user-login-form-username" ).val("");
+      $("#user-login-form-password" ).val("");
     }
 
     var userLoginForm = $("#user-login-form");