mirror of https://github.com/apache/archiva.git
[MRM-1841] "Remember me" not working
password not stored anymore
This commit is contained in:
parent
54fbc5f0b2
commit
ef572f80d7
|
@ -35,7 +35,11 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
|
||||||
|
|
||||||
var expires= Number(window.cookieInformation.timeout);
|
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);
|
$.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(){
|
getUserFromLoginCookie=function(){
|
||||||
|
@ -65,9 +69,9 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
|
||||||
if(!user){
|
if(!user){
|
||||||
return null;
|
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.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);
|
$.log("user.rememberme:"+user.rememberme);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue