function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryValidate,jqueryJson,ko,typeahead) {
/**
- * reccord a cookie for session with the logged user
+ * record a cookie for session with the logged user
* @param user see user.js
*/
reccordLoginCookie=function(user) {
user.timestampAccountCreation,user.timestampLastLogin,user.timestampLastPasswordChange,user.locked,
user.passwordChangeRequired,null,user.readOnly,user.userManagerId)
+ $.log("user.rememberme:"+user.rememberme);
+
kUser.rememberme(user.rememberme);
return kUser;
};
}
// FIXME check validated
+ $.log("window.redbackModel.rememberme:"+window.redbackModel.rememberme);
user.rememberme(window.redbackModel.rememberme);
if(user.rememberme()){
user.password(window.redbackModel.password);
$('#modal-login-footer').append(smallSpinnerImg());
- var rememberme=($("#user-login-form-rememberme" ).attr('checked')=='checked');
+ var rememberme=$('#user-login-form-rememberme').is(':checked');
+ $.log("user.js#login, rememberme:"+rememberme);
window.redbackModel.rememberme=rememberme;
window.redbackModel.password=$("#user-login-form-password").val();
<div class="modal-footer" id="modal-login-footer">
<div class="pull-left">
<label class="checkbox" id="user-login-form-rememberme-label">
- <input type="checkbox" id="user-login-form-rememberme">${$.i18n.prop('rememberme')}
+ <input type="checkbox" id="user-login-form-rememberme"/>${$.i18n.prop('rememberme')}
</label>
</div>
<button class="btn btn-primary" id="modal-login-ok" data-loading-text="${$.i18n.prop('common.loading')}">