Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

feat: default to totp

httpjamesm83a17e4d118c
diff --git a/web/packages/accounts/api/user.ts b/web/packages/accounts/api/user.ts
index ff4f703267..0aa534306c 100644
--- a/web/packages/accounts/api/user.ts
+++ b/web/packages/accounts/api/user.ts
@@ -82,7 +82,7 @@ export const verifyTwoFactor = async (code: string, sessionID: string) => {
export const recoverTwoFactor = async (
sessionID: string,
- twoFactorType: TwoFactorType,
+ twoFactorType: TwoFactorType = TwoFactorType.TOTP,
) => {
const resp = await HTTPService.get(`${ENDPOINT}/users/two-factor/recover`, {
sessionID,
@@ -94,7 +94,7 @@ export const recoverTwoFactor = async (
export const removeTwoFactor = async (
sessionID: string,
secret: string,
- twoFactorType: TwoFactorType,
+ twoFactorType: TwoFactorType = TwoFactorType.TOTP,
) => {
const resp = await HTTPService.post(`${ENDPOINT}/users/two-factor/remove`, {
sessionID,