Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
Merge pull request #3290 from dpinse/test
Fix confirmation for removing 2FA and deauthing sessions in admin panel
Dieser Commit ist enthalten in:
Commit
337cbfaf22
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
6
src/static/scripts/admin_users.js
gevendort
6
src/static/scripts/admin_users.js
gevendort
|
@ -28,7 +28,8 @@ function remove2fa(event) {
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
const id = event.target.parentNode.dataset.vwUserUuid;
|
||||
if (!id) {
|
||||
const email = event.target.parentNode.dataset.vwUserEmail;
|
||||
if (!id || !email) {
|
||||
alert("Required parameters not found!");
|
||||
return false;
|
||||
}
|
||||
|
@ -45,7 +46,8 @@ function deauthUser(event) {
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
const id = event.target.parentNode.dataset.vwUserUuid;
|
||||
if (!id) {
|
||||
const email = event.target.parentNode.dataset.vwUserEmail;
|
||||
if (!id || !email) {
|
||||
alert("Required parameters not found!");
|
||||
return false;
|
||||
}
|
||||
|
|
Laden …
In neuem Issue referenzieren