summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/settings/other.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-09-22 14:12:33 +0900
committerGitHub <noreply@github.com>2023-09-22 14:12:33 +0900
commitc836157edb869e80b15f51bb8f48725e3b898b9a (patch)
treec275a865b697afa4c5d045d16b1ca8999999f9cf /packages/frontend/src/pages/settings/other.vue
parenttweak ui (diff)
downloadmisskey-c836157edb869e80b15f51bb8f48725e3b898b9a.tar.gz
misskey-c836157edb869e80b15f51bb8f48725e3b898b9a.tar.bz2
misskey-c836157edb869e80b15f51bb8f48725e3b898b9a.zip
enhance: 二要素認証設定時のセキュリティを強化 (#11863)
* enhance: 二要素認証設定時のセキュリティを強化 パスワード入力が必要な操作を行う際、二要素認証が有効であれば確認コードの入力も必要にする * Update CoreModule.ts * Update 2fa.ts * wip * wip * Update 2fa.ts * tweak
Diffstat (limited to 'packages/frontend/src/pages/settings/other.vue')
-rw-r--r--packages/frontend/src/pages/settings/other.vue10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/frontend/src/pages/settings/other.vue b/packages/frontend/src/pages/settings/other.vue
index c3278c22f3..e2fc021099 100644
--- a/packages/frontend/src/pages/settings/other.vue
+++ b/packages/frontend/src/pages/settings/other.vue
@@ -113,14 +113,12 @@ async function deleteAccount() {
if (canceled) return;
}
- const { canceled, result: password } = await os.inputText({
- title: i18n.ts.password,
- type: 'password',
- });
- if (canceled) return;
+ const auth = await os.authenticateDialog();
+ if (auth.canceled) return;
await os.apiWithDialog('i/delete-account', {
- password: password,
+ password: auth.result.password,
+ token: auth.result.token,
});
await os.alert({