aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-05-21 16:06:21 +1000
committerOlivier Lamy <olamy@apache.org>2014-05-21 16:06:21 +1000
commitef572f80d72aaf51598ee676e6f862681f58e350 (patch)
treec7f947ec3a38b25e0c7568b3216999cb4fb573e8 /archiva-modules
parent54fbc5f0b2de5cf977e2b45edea0be76f5913ce2 (diff)
downloadarchiva-ef572f80d72aaf51598ee676e6f862681f58e350.tar.gz
archiva-ef572f80d72aaf51598ee676e6f862681f58e350.zip
[MRM-1841] "Remember me" not working
password not stored anymore
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js
index 6472b68b2..00c2189fa 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js
@@ -35,7 +35,11 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
var expires= Number(window.cookieInformation.timeout);
- var userJson=ko.toJSON(user);
+ var kUser = new User(user.username, null, user.confirmPassword,user.fullName,user.email,user.permanent,user.validated,
+ user.timestampAccountCreation,user.timestampLastLogin,user.timestampLastPasswordChange,user.locked,
+ user.passwordChangeRequired,null,user.readOnly,user.userManagerId);
+ kUser.rememberme(user.rememberme());
+ var userJson=ko.toJSON(kUser);
$.log("reccordLoginCookie:expires:"+expires+",path:"+path+",domain:"+domain+",secure:"+secure+",user:"+userJson);
@@ -55,7 +59,7 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
}
}
- $.cookie('archiva_login', userJson,options);
+ $.cookie('archiva_login',userJson,options);
};
getUserFromLoginCookie=function(){
@@ -65,9 +69,9 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
if(!user){
return null;
}
- var kUser = new User(user.username, user.password, user.confirmPassword,user.fullName,user.email,user.permanent,user.validated,
+ var kUser = new User(user.username, null, user.confirmPassword,user.fullName,user.email,user.permanent,user.validated,
user.timestampAccountCreation,user.timestampLastLogin,user.timestampLastPasswordChange,user.locked,
- user.passwordChangeRequired,null,user.readOnly,user.userManagerId)
+ user.passwordChangeRequired,null,user.readOnly,user.userManagerId);
$.log("user.rememberme:"+user.rememberme);