Skip to content

Commit

Permalink
Merge pull request #3290 from dpinse/test
Browse files Browse the repository at this point in the history
Fix confirmation for removing 2FA and deauthing sessions in admin panel
  • Loading branch information
BlackDex committed Mar 1, 2023
2 parents 0426051 + f88b6d9 commit 337cbfa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/static/scripts/admin_users.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 337cbfa

Please sign in to comment.