Browse Source

Make the admin retype the user name before deleting

pull/343/head
Daniel García 6 years ago
parent
commit
673adde9f1
No known key found for this signature in database GPG Key ID: FC8A7D14C3CD543A
  1. 9
      src/static/admin.html

9
src/static/admin.html

@ -66,8 +66,13 @@
row.find(".tmp-icon").attr("src", identicon(user.Email))
row.find(".tmp-del").on("click", function (e) {
if (confirm("Delete User '" + user.Name + "'?")) {
deleteUser(user.Id);
var name = prompt("To delete user '" + user.Name + "', please type the name below")
if (name) {
if (name == user.Name) {
deleteUser(user.Id);
} else {
alert("Wrong name, please try again")
}
}
return false;
});

Loading…
Cancel
Save