mirror of
https://github.com/ViViDboarder/bitwarden_rs.git
synced 2024-11-22 05:06:37 +00:00
Make the admin retype the user name before deleting
This commit is contained in:
parent
c9063a06b4
commit
673adde9f1
@ -66,8 +66,13 @@
|
|||||||
row.find(".tmp-icon").attr("src", identicon(user.Email))
|
row.find(".tmp-icon").attr("src", identicon(user.Email))
|
||||||
|
|
||||||
row.find(".tmp-del").on("click", function (e) {
|
row.find(".tmp-del").on("click", function (e) {
|
||||||
if (confirm("Delete User '" + user.Name + "'?")) {
|
var name = prompt("To delete user '" + user.Name + "', please type the name below")
|
||||||
deleteUser(user.Id);
|
if (name) {
|
||||||
|
if (name == user.Name) {
|
||||||
|
deleteUser(user.Id);
|
||||||
|
} else {
|
||||||
|
alert("Wrong name, please try again")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user