Skip to content

Commit

Permalink
Wrong API endpoint fix (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren authored Nov 1, 2024
1 parent 55b04e3 commit 7b32c92
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions web/js/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ function send_log_in(){
var user_password = document.getElementById("password").value;

var form_obj = {
"email" : user_email,
"password" : user_password
};
"email" : user_email,
"password" : user_password
};

var form_data = JSON.stringify(form_obj);

Expand Down Expand Up @@ -296,7 +296,7 @@ function reset_password_request(){
}
};
xhttp.withCredentials = true;
xhttp.open("post", api_url + "open/user/reset");
xhttp.open("post", api_url + "open/users/reset");
xhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
xhttp.send(form_data);
return false;
Expand All @@ -309,10 +309,10 @@ function reset_password(){
var reset_code = document.getElementById("reset_code").value;

var form_obj = {
"reset_code": reset_code,
"password" : password,
"password_repeat" : password_repeat
};
"reset_code": reset_code,
"password" : password,
"password_repeat" : password_repeat
};

var form_data = JSON.stringify(form_obj);

Expand Down Expand Up @@ -348,7 +348,7 @@ function reset_password(){
}
};
xhttp.withCredentials = true;
xhttp.open("post", api_url + "open/user/password");
xhttp.open("post", api_url + "open/users/password");
xhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
xhttp.send(form_data);
return false;
Expand Down

0 comments on commit 7b32c92

Please sign in to comment.