Skip to content

Commit 6bed74b

Browse files
committed
fix: make old fronend api work as well
1 parent ae841a7 commit 6bed74b

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

custom/TwoFAModal.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,7 @@
286286
287287
async function checkIfUserHasPasskeys() {
288288
isLoading.value = true;
289-
const hasPasskeys = await twofaApi.checkIfUserHasPasskeys();
290-
if (hasPasskeys) {
291-
twofaApi.setDoesUserHavePasskeys(true);
292-
twofaApi.setModalMode("passkey");
293-
} else {
294-
twofaApi.setDoesUserHavePasskeys(false);
295-
twofaApi.setModalMode("totp");
296-
}
289+
await twofaApi.checkIfUserHasPasskeys();
297290
isLoading.value = false;
298291
}
299292

0 commit comments

Comments
 (0)