From 69a0a15f2d39c00fc1a921a2e146d8e32c151f5b Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sun, 22 Aug 2021 14:43:09 +0400 Subject: [PATCH] de --- account/src/lib/couch-db.ts | 1 + account/src/routers/api-router.ts | 1 - website/src/lib/backend-calls.ts | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/account/src/lib/couch-db.ts b/account/src/lib/couch-db.ts index 4c53e66..f9508ee 100644 --- a/account/src/lib/couch-db.ts +++ b/account/src/lib/couch-db.ts @@ -107,6 +107,7 @@ export async function createWordlistDatabase(uuid: T.UUID): Promise<{ name: T.Wo const password = generateWordlistDbPassword(); const name = getWordlistDbName(uuid); // create wordlist database for user + console.log("creating db for", uuid); await nano.db.create(name); const securityInfo = { admins: { diff --git a/account/src/routers/api-router.ts b/account/src/routers/api-router.ts index 488db13..f4a4d9a 100644 --- a/account/src/routers/api-router.ts +++ b/account/src/routers/api-router.ts @@ -96,7 +96,6 @@ apiRouter.put("/user/upgrade", async (req, res, next) => { try { const givenPassword = (req.body.password || "") as string; const studentPassword = env.upgradePassword; - console.log("comparing", givenPassword.toLocaleLowerCase().trim(), "to", studentPassword.toLowerCase()); if (givenPassword.toLowerCase().trim() !== studentPassword.toLowerCase()) { const wrongPass: T.UpgradeUserResponse = { ok: false, diff --git a/website/src/lib/backend-calls.ts b/website/src/lib/backend-calls.ts index d759fdf..4315234 100644 --- a/website/src/lib/backend-calls.ts +++ b/website/src/lib/backend-calls.ts @@ -31,7 +31,6 @@ export async function publishDictionary(): Promise } export async function upgradeAccount(password: string): Promise { - const response = await accountApiFetch("user/upgrade", "PUT", { password }); return response as AT.UpgradeUserResponse; }