From eece534f1d70bffd204df7e23d2b8b87366db56e Mon Sep 17 00:00:00 2001 From: wvffle Date: Mon, 14 Nov 2022 20:55:06 +0000 Subject: [PATCH] Display unhashed client secret --- front/src/components/auth/ApplicationEdit.vue | 25 +++++++++++++++++-- front/src/components/auth/ApplicationNew.vue | 19 +++++++++++++- front/src/store/auth.ts | 8 +++++- front/src/types.ts | 1 + 4 files changed, 49 insertions(+), 4 deletions(-) diff --git a/front/src/components/auth/ApplicationEdit.vue b/front/src/components/auth/ApplicationEdit.vue index b011b721c..84cbc57a5 100644 --- a/front/src/components/auth/ApplicationEdit.vue +++ b/front/src/components/auth/ApplicationEdit.vue @@ -7,6 +7,7 @@ import axios from 'axios' import ApplicationForm from '~/components/auth/ApplicationForm.vue' import useErrorHandler from '~/composables/useErrorHandler' +import { useStore } from '~/store' interface Props { id: number @@ -50,6 +51,10 @@ const refreshToken = async () => { } fetchApplication() + +const store = useStore() +const secret = store.state.auth.applicationSecret +store.state.auth.applicationSecret = undefined