1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-26 05:50: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:
Mathijs van Veluw 2023-03-01 06:38:28 +01:00 committet von GitHub
Commit 337cbfaf22
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -28,7 +28,8 @@ function remove2fa(event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
const id = event.target.parentNode.dataset.vwUserUuid; const id = event.target.parentNode.dataset.vwUserUuid;
if (!id) { const email = event.target.parentNode.dataset.vwUserEmail;
if (!id || !email) {
alert("Required parameters not found!"); alert("Required parameters not found!");
return false; return false;
} }
@ -45,7 +46,8 @@ function deauthUser(event) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
const id = event.target.parentNode.dataset.vwUserUuid; const id = event.target.parentNode.dataset.vwUserUuid;
if (!id) { const email = event.target.parentNode.dataset.vwUserEmail;
if (!id || !email) {
alert("Required parameters not found!"); alert("Required parameters not found!");
return false; return false;
} }