From 1850dd542d564e91cf55ac9fcdf7902091969163 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sat, 5 Dec 2020 11:22:59 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20clean=20up=20CreateAuth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #12 --- src/models/creation/CreateAuth.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/models/creation/CreateAuth.ts b/src/models/creation/CreateAuth.ts index 564d6f5..0ba27af 100644 --- a/src/models/creation/CreateAuth.ts +++ b/src/models/creation/CreateAuth.ts @@ -33,9 +33,7 @@ export class CreateAuth { } else { const found_user = found_users[0] console.log(found_user.password); - // try { if (await argon2.verify(found_user.password, this.password + found_user.uuid)) { - // password match // TODO: proper jwt creation const token = jsonwebtoken.sign({}, "securekey") newAuth.access_token = token @@ -43,13 +41,8 @@ export class CreateAuth { newAuth.access_token_expires_at = 1587349200 newAuth.refresh_token_expires_at = 1587349200 } else { - // password did not match throw new InvalidCredentialsError() } - // } catch (err) { - // // internal failure - // } - } return newAuth; }