Fix: store new password to avoid re-login.

This commit is contained in:
opi 2014-02-20 12:59:03 +01:00
parent 72a503f266
commit 2d7ae6eac8

View file

@ -670,6 +670,7 @@ app = Sammy('#main', function (sam) {
delete params['confirm_new_password']; delete params['confirm_new_password'];
// Update password and redirect to the home // Update password and redirect to the home
c.api('/adminpw', function(data) { // http://api.yunohost.org/#!/tools/tools_adminpw_put_3 c.api('/adminpw', function(data) { // http://api.yunohost.org/#!/tools/tools_adminpw_put_3
store.set('password', btoa(params['new_password']));
c.redirect('#/'); c.redirect('#/');
}, 'PUT', params); }, 'PUT', params);
} }