diff options
author | vnugent <public@vaughnnugent.com> | 2023-08-23 22:11:23 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-08-23 22:11:23 -0400 |
commit | 51a65e9196f35393817ba94721503afdfa76fb60 (patch) | |
tree | 89f37a8c0a01521c3c567441200ca2061f233600 /front-end/src/views/Login | |
parent | 277dd634e169e7341272e304f715a542047396d7 (diff) |
package and ui updates
Diffstat (limited to 'front-end/src/views/Login')
-rw-r--r-- | front-end/src/views/Login/components/Social.vue | 12 | ||||
-rw-r--r-- | front-end/src/views/Login/index.vue | 6 | ||||
-rw-r--r-- | front-end/src/views/Login/social/[type].vue | 3 |
3 files changed, 5 insertions, 16 deletions
diff --git a/front-end/src/views/Login/components/Social.vue b/front-end/src/views/Login/components/Social.vue index 34c5a1e..6eb65e7 100644 --- a/front-end/src/views/Login/components/Social.vue +++ b/front-end/src/views/Login/components/Social.vue @@ -14,20 +14,10 @@ </button> </form> - <form v-if="auth0Enabled" class="mt-4" @submit.prevent="SocalLogin('/login/social/auth0')"> - <button type="submit" class="btn social-button" :disabled="waiting"> - <fa-icon :icon="['fa','key']" size="xl" /> - Login with Auth0 - </button> - </form> - </template> <script setup lang="ts"> -import { apiCall, useWait, useSession, useSessionUtils, WebMessage } from '@vnuge/vnlib.browser' - -//auth0 enabled flag from env -const auth0Enabled = import.meta.env.VITE_ENABLE_AUTH0 == 'true'; +import { apiCall, useWait, useSession, useSessionUtils, WebMessage } from '@vnuge/vnlib.browser' const { waiting } = useWait() const { browserId, publicKey } = useSession() diff --git a/front-end/src/views/Login/index.vue b/front-end/src/views/Login/index.vue index d0fa9b2..7c30047 100644 --- a/front-end/src/views/Login/index.vue +++ b/front-end/src/views/Login/index.vue @@ -48,8 +48,10 @@ import { computed, ref } from 'vue' import Totp from './components/Totp.vue' import UserPass from './components/UserPass.vue' import Social from './components/Social.vue' -import { apiCall, useMessage, useWait, useUser, useSession, useLastPage, useTitle, debugLog } from '@vnuge/vnlib.browser' -import { useMfaLogin, totpMfaProcessor, IMfaFlowContinuiation, MfaMethod } from '@vnuge/vnlib.browser/dist/mfa' +import { + useMfaLogin, totpMfaProcessor, IMfaFlowContinuiation, MfaMethod, apiCall, + useMessage, useWait, useUser, useSession, useLastPage, useTitle, debugLog +} from '@vnuge/vnlib.browser' import { useTimeoutFn } from '@vueuse/shared' import { isNil } from 'lodash-es' diff --git a/front-end/src/views/Login/social/[type].vue b/front-end/src/views/Login/social/[type].vue index bdb0240..da1aa25 100644 --- a/front-end/src/views/Login/social/[type].vue +++ b/front-end/src/views/Login/social/[type].vue @@ -73,9 +73,6 @@ const run = async () => { case 'discord': loginUrl = '/login/social/discord'; break; - case 'auth0': - loginUrl = '/login/social/auth0'; - break; default: router.push({ name: 'Login' }) break; |