mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-21 20:35:28 +03:00
Fix confirmation for removing 2FA and deauthing sessions in admin panel
This commit is contained in:
parent
0426051541
commit
f88b6d961e
1 changed files with 4 additions and 2 deletions
6
src/static/scripts/admin_users.js
vendored
6
src/static/scripts/admin_users.js
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue