Skip to content

armgit / ente

Public Imported from GitHub
0

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

X-Client-Package determines this

Manav Rathi9b292bbd808f
diff --git a/web/packages/accounts/services/user.ts b/web/packages/accounts/services/user.ts
index 986d0dd1d2..801362257e 100644
--- a/web/packages/accounts/services/user.ts
+++ b/web/packages/accounts/services/user.ts
@@ -71,11 +71,10 @@ export interface RecoveryKey {
export const sendOTT = async (email: string, purpose: "change" | undefined) =>
ensureOk(
await fetch(await apiURL("/users/ott"), {
- headers: publicRequestHeaders(),
method: "POST",
+ headers: publicRequestHeaders(),
body: JSON.stringify({
email,
- client: appName == "auth" ? "totp" : "web",
purpose: purpose ?? "",
}),
}),
@@ -191,14 +190,6 @@ export const changeEmail = async (email: string, ott: string) => {
);
};
-export const sendOTTForEmailChange = async (email: string) => {
- await HTTPService.post(await apiURL("/users/ott"), {
- email,
- client: "web",
- purpose: "change",
- });
-};
-
export const setupTwoFactor = async () => {
const resp = await HTTPService.post(
await apiURL("/users/two-factor/setup"),