summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/settings/2fa.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2024-01-04 15:30:40 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2024-01-04 15:30:40 +0900
commitea41cc6ec0f7b79fc753d37b4586abfef87bf23f (patch)
treecbbb93dbc3a40f33a998f91051ae630fc5b2fbce /packages/frontend/src/pages/settings/2fa.vue
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadsharkey-ea41cc6ec0f7b79fc753d37b4586abfef87bf23f.tar.gz
sharkey-ea41cc6ec0f7b79fc753d37b4586abfef87bf23f.tar.bz2
sharkey-ea41cc6ec0f7b79fc753d37b4586abfef87bf23f.zip
refactor(frontend): reduce type errors
Diffstat (limited to 'packages/frontend/src/pages/settings/2fa.vue')
-rw-r--r--packages/frontend/src/pages/settings/2fa.vue6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/frontend/src/pages/settings/2fa.vue b/packages/frontend/src/pages/settings/2fa.vue
index 4c165ef4ee..35331738fd 100644
--- a/packages/frontend/src/pages/settings/2fa.vue
+++ b/packages/frontend/src/pages/settings/2fa.vue
@@ -80,9 +80,11 @@ import MkSwitch from '@/components/MkSwitch.vue';
import FormSection from '@/components/form/section.vue';
import MkFolder from '@/components/MkFolder.vue';
import * as os from '@/os.js';
-import { $i } from '@/account.js';
+import { signinRequired } from '@/account.js';
import { i18n } from '@/i18n.js';
+const $i = signinRequired();
+
// メモ: 各エンドポイントはmeUpdatedを発行するため、refreshAccountは不要
withDefaults(defineProps<{
@@ -91,7 +93,7 @@ withDefaults(defineProps<{
first: false,
});
-const usePasswordLessLogin = computed(() => $i?.usePasswordLessLogin ?? false);
+const usePasswordLessLogin = computed(() => $i.usePasswordLessLogin ?? false);
async function registerTOTP(): Promise<void> {
const auth = await os.authenticateDialog();