|
|
@@ -48,7 +48,7 @@ function changeName() { |
|
|
|
}).then(response => { |
|
|
|
if (response.ok) { |
|
|
|
pane.classList.add('completed') |
|
|
|
info.textContent = 'Verification link sent.' |
|
|
|
info.textContent = 'Completed' |
|
|
|
} else { |
|
|
|
pane.classList.add('error') |
|
|
|
info.textContent = 'Error: ' + response.status |
|
|
@@ -65,7 +65,7 @@ function changeEmail() { |
|
|
|
|
|
|
|
pane.classList.add('loading') |
|
|
|
pane.classList.remove('error') |
|
|
|
fetch("/panel/change-name", { |
|
|
|
fetch("/panel/change-email", { |
|
|
|
method: 'POST', |
|
|
|
headers: {'Content-Type': 'application/json', |
|
|
|
'Accept': 'application/json', |
|
|
@@ -74,7 +74,7 @@ function changeEmail() { |
|
|
|
}).then(response => { |
|
|
|
if (response.ok) { |
|
|
|
pane.classList.add('completed') |
|
|
|
info.textContent = 'Completed' |
|
|
|
info.textContent = 'Verification link sent' |
|
|
|
} else { |
|
|
|
pane.classList.add('error') |
|
|
|
info.textContent = 'Error: ' + response.status |
|
|
|