"""prettier"""
This commit is contained in:
parent
2a9d2a3be6
commit
bcb2c23775
@ -62,8 +62,16 @@ function logout() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function deleteAccount() {
|
function deleteAccount() {
|
||||||
if (window.confirm("Are you sure you want to delete your account " + $(".displayname").text() + " (" + localStorage.getItem("email") + ")? This action cannot be undone.")) {
|
if (
|
||||||
fetch("/custom/deleteAccount?" + window.authz).then(function() {
|
window.confirm(
|
||||||
|
"Are you sure you want to delete your account " +
|
||||||
|
$(".displayname").text() +
|
||||||
|
" (" +
|
||||||
|
localStorage.getItem("email") +
|
||||||
|
")? This action cannot be undone."
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
fetch("/custom/deleteAccount?" + window.authz).then(function () {
|
||||||
logout();
|
logout();
|
||||||
single.loadRoute("/webui/"); // Show login screen
|
single.loadRoute("/webui/"); // Show login screen
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user