|
|
@@ -95,7 +95,11 @@ function changePassword() { |
|
|
|
headers: {'Content-Type': 'application/json', |
|
|
|
'Accept': 'application/json', |
|
|
|
'X-XSRF-TOKEN': this.token}, |
|
|
|
body: JSON.stringify({'current_password': document.getElementById('current_password').value, 'password': document.getElementById('new_password').value, 'password_confirmation': document.getElementById('confirm_password').value}), |
|
|
|
body: JSON.stringify({'current_password': |
|
|
|
document.getElementById('current_password').value, |
|
|
|
'password': document.getElementById('new_password').value, |
|
|
|
'password_confirmation': |
|
|
|
document.getElementById('confirm_password').value}), |
|
|
|
}).then(response => { |
|
|
|
response.json().then(data => {console.log(data)}) |
|
|
|
if (response.ok) { |
|
|
|