Browse Source

Admin delete SSO association prompt

pull/6262/head
Timshel 6 days ago
parent
commit
e4e5a400ba
  1. 4
      src/static/scripts/admin_users.js

4
src/static/scripts/admin_users.js

@ -33,11 +33,11 @@ function deleteSSOUser(event) {
alert("Required parameters not found!"); alert("Required parameters not found!");
return false; return false;
} }
const input_email = prompt(`To delete user "${email}", please type the email below`); const input_email = prompt(`To delete user "${email}" SSO association, please type the email below`);
if (input_email != null) { if (input_email != null) {
if (input_email == email) { if (input_email == email) {
_delete(`${BASE_URL}/admin/users/${id}/sso`, _delete(`${BASE_URL}/admin/users/${id}/sso`,
"User SSO Associtation deleted correctly", "User SSO association deleted correctly",
"Error deleting user SSO association" "Error deleting user SSO association"
); );
} else { } else {

Loading…
Cancel
Save