1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-22 05:10:29 +01:00

Make the admin retype the user name before deleting

Dieser Commit ist enthalten in:
Daniel García 2019-01-07 14:48:10 +01:00
Ursprung c9063a06b4
Commit 673adde9f1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: FC8A7D14C3CD543A

Datei anzeigen

@ -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")
if (name) {
if (name == user.Name) {
deleteUser(user.Id); deleteUser(user.Id);
} else {
alert("Wrong name, please try again")
}
} }
return false; return false;
}); });