aboutsummaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
authorDylan Pinsonneault <[email protected]>2023-02-28 20:38:33 -0500
committerDylan Pinsonneault <[email protected]>2023-02-28 20:38:33 -0500
commitf88b6d961e33071e775bd4886ee66df32e63dd69 (patch)
tree3a9afb7101061cd7fe41216d73ecd29334bd2e82 /src/static
parent0426051541a34f0d2dccd4fba0f55b0e23d48511 (diff)
downloadvaultwarden-f88b6d961e33071e775bd4886ee66df32e63dd69.tar.gz
vaultwarden-f88b6d961e33071e775bd4886ee66df32e63dd69.zip
Fix confirmation for removing 2FA and deauthing sessions in admin panel
Diffstat (limited to 'src/static')
-rw-r--r--src/static/scripts/admin_users.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/static/scripts/admin_users.js b/src/static/scripts/admin_users.js
index cdc6c3f4..444bc77c 100644
--- a/src/static/scripts/admin_users.js
+++ b/src/static/scripts/admin_users.js
@@ -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;
}