vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 337cbfaf22ee28316ea09e859be0527416fe7da5
parent 0426051541a34f0d2dccd4fba0f55b0e23d48511
Author: Mathijs van Veluw <black.dex@gmail.com>
Date:   Wed,  1 Mar 2023 06:38:28 +0100

Merge pull request #3290 from dpinse/test

Fix confirmation for removing 2FA and deauthing sessions in admin panel
Diffstat:
Msrc/static/scripts/admin_users.js | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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; }