Add new password change endpoint

This commit is contained in:
KernelDeimos
2024-05-11 02:04:57 -04:00
committed by KernelDeimos
parent a89c9d59cf
commit 9076fddc0d
2 changed files with 81 additions and 3 deletions

View File

@@ -114,7 +114,7 @@ async function UIWindowChangePassword(options){
$(el_window).find('.form-error-msg').hide();
$.ajax({
url: window.api_origin + "/passwd",
url: window.api_origin + "/user-protected/change-password",
type: 'POST',
async: true,
headers: {
@@ -122,7 +122,7 @@ async function UIWindowChangePassword(options){
},
contentType: "application/json",
data: JSON.stringify({
old_pass: current_password,
password: current_password,
new_pass: new_password,
}),
success: function (data){