|
|
|
@ -32,11 +32,14 @@ function remove2fa(event) {
|
|
|
|
|
alert("Required parameters not found!");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
const confirmed = confirm(`Are you sure you want to remove 2FA for "${email}"?`);
|
|
|
|
|
if (confirmed) {
|
|
|
|
|
_post(`${BASE_URL}/admin/users/${id}/remove-2fa`,
|
|
|
|
|
"2FA removed correctly",
|
|
|
|
|
"Error removing 2FA"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function deauthUser(event) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
@ -46,11 +49,14 @@ function deauthUser(event) {
|
|
|
|
|
alert("Required parameters not found!");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
const confirmed = confirm(`Are you sure you want to deauthorize sessions for "${email}"?`);
|
|
|
|
|
if (confirmed) {
|
|
|
|
|
_post(`${BASE_URL}/admin/users/${id}/deauth`,
|
|
|
|
|
"Sessions deauthorized correctly",
|
|
|
|
|
"Error deauthorizing sessions"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function disableUser(event) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
|