feat(webui): delete account #615
@ -62,7 +62,15 @@ function logout() {
|
||||
}
|
||||
|
||||
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 (
|
||||
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();
|
||||
single.loadRoute("/webui/"); // Show login screen
|
||||
|
Loading…
x
Reference in New Issue
Block a user