mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
fix: incorrect parameters in UIWindowChangePassword
This commit is contained in:
@@ -171,7 +171,7 @@ async function UIWindowChangePassword (options) {
|
||||
$(el_window).find('.change-password-btn').addClass('disabled');
|
||||
$(el_window).find('.current-password, .new-password, .confirm-new-password').attr('disabled', true);
|
||||
|
||||
let res = await doSubmit(current_password);
|
||||
let res = await doSubmit({ current_password, new_password });
|
||||
const data = res.ok ? await res.json().catch(() => ({})) : await res.json().catch(() => ({}));
|
||||
|
||||
if ( res.ok ) {
|
||||
|
||||
Reference in New Issue
Block a user