mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Fix: store new password to avoid re-login.
This commit is contained in:
parent
72a503f266
commit
2d7ae6eac8
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue