diff --git a/web/js/login.js b/web/js/login.js index 5b69068..6a1270e 100644 --- a/web/js/login.js +++ b/web/js/login.js @@ -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); @@ -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; @@ -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); @@ -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;