diff --git a/.env b/.env index 95434f6..ae680af 100644 --- a/.env +++ b/.env @@ -2,9 +2,9 @@ # if use a sub directory, it must be end with "/", like "/admin/" but not "/admin" VITE_BASE_URL=/ -VITE_APP_TITLE=RiwsanAdmin +VITE_APP_TITLE=Financial -VITE_APP_DESC=RiwsanAdmin is trade palatform admin system +VITE_APP_DESC=Financial is trade palatform admin system # the prefix of the icon name VITE_ICON_PREFIX=icon diff --git a/src/components/common/google-auth.vue b/src/components/common/google-auth.vue index 6af3a36..202bdf5 100644 --- a/src/components/common/google-auth.vue +++ b/src/components/common/google-auth.vue @@ -20,6 +20,7 @@ const totpCode = ref(''); const loading = ref(false); const verifying = ref(false); const disabling = ref(false); +const { VITE_APP_TITLE } = import.meta.env; function generateQRCode(url: string) { return `https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${encodeURIComponent(url)}`; @@ -35,7 +36,7 @@ async function enableTwoFactor() { const { data } = await safeClient( authClient.twoFactor.enable({ password: props.password, - issuer: 'my-app-name' + issuer: VITE_APP_TITLE || 'financial-admin' }) ); loading.value = false; diff --git a/src/layouts/modules/global-header/components/user-avatar.vue b/src/layouts/modules/global-header/components/user-avatar.vue index ad712b3..f099a85 100644 --- a/src/layouts/modules/global-header/components/user-avatar.vue +++ b/src/layouts/modules/global-header/components/user-avatar.vue @@ -1,7 +1,7 @@