This commit is contained in:
lingdocs 2021-08-22 14:06:52 +04:00
parent 49b60f9294
commit 88f458b31e
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ 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,