feat: 更新应用标题和描述,调整谷歌验证和登录流程以支持二步验证
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user