Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-26 05:50:29 +01:00
Make the admin retype the user name before deleting
Dieser Commit ist enthalten in:
Ursprung
c9063a06b4
Commit
673adde9f1
1 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen
|
@ -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;
|
||||
});
|
||||
|
|
Laden …
In neuem Issue referenzieren