diff options
author | vnugent <public@vaughnnugent.com> | 2023-12-13 17:58:51 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-12-13 17:58:51 -0500 |
commit | 4b8ae76132d2342f40cec703b3d5145ea075c451 (patch) | |
tree | 62b942b6181261566cd3245ee35cd15a138aabf2 /front-end/src/views/Login/pki | |
parent | b564708f29cf8a709c3e3d981477b2ec8440673e (diff) |
log time coming ui and lib updates
Diffstat (limited to 'front-end/src/views/Login/pki')
-rw-r--r-- | front-end/src/views/Login/pki/index.vue | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/front-end/src/views/Login/pki/index.vue b/front-end/src/views/Login/pki/index.vue index cd0113e..585942a 100644 --- a/front-end/src/views/Login/pki/index.vue +++ b/front-end/src/views/Login/pki/index.vue @@ -12,7 +12,7 @@ <div class="flex justify-between mt-4"> <div class="text-sm"> - <a class="link" target="_blank" href="https://github.com/VnUgE/Plugins.Essentials/tree/master/plugins/VNLib.Plugins.Essentials.Accounts"> + <a class="link" target="_blank" href="https://www.vaughnnugent.com/resources/software/articles?tags=docs,_VNLib.Plugins.Essentials.Accounts"> Goto OTP spec <fa-icon icon="arrow-right" class="ml-1" /> </a> @@ -33,16 +33,17 @@ <script setup lang="ts"> import { isEmpty } from 'lodash-es'; -import { apiCall, debugLog, useMessage, usePkiAuth } from '@vnuge/vnlib.browser'; +import { apiCall, debugLog, useMessage } from '@vnuge/vnlib.browser'; import { ref } from 'vue' import { decodeJwt } from 'jose' import { useRouter } from 'vue-router'; - -const otp = ref('') +import { useStore } from '../../../store'; const { setMessage } = useMessage() const { push } = useRouter() -const { login } = usePkiAuth(import.meta.env.VITE_PKI_ENDPOINT) +const store = useStore() + +const otp = ref('') const submit = () =>{ @@ -56,7 +57,7 @@ const submit = () =>{ const jwt = decodeJwt(otp.value) debugLog(jwt) - await login(otp.value) + await store.pkiAuth.login(otp.value) //Go back to login page push({ name: 'Login' }) |