From ec5ef65911772a39ce384697079352e76e330ade Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:29:49 +0000 Subject: [PATCH] don't allow SSO reset from UI --- src/components/AdminManager.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/AdminManager.vue b/src/components/AdminManager.vue index 202563e4..471a110d 100644 --- a/src/components/AdminManager.vue +++ b/src/components/AdminManager.vue @@ -98,7 +98,7 @@ v-close-popup @click="ResetPassword(props.row)" id="context-reset" - :disable="localLogonDisabled" + :disable="props.row.social_accounts.length !== 0" > @@ -111,7 +111,7 @@ v-close-popup @click="reset2FA(props.row)" id="context-reset" - :disable="localLogonDisabled" + :disable="props.row.social_accounts.length !== 0" > @@ -205,9 +205,6 @@ export default { // setup vuex const store = useStore(); const formatDate = computed(() => store.getters.formatDate); - const localLogonDisabled = computed( - () => store.state.block_local_user_logon, - ); const $q = useQuasar(); @@ -230,7 +227,6 @@ export default { } return { - localLogonDisabled, formatDate, showSSOAccounts, showSessions,