From 20a3bc3a206e6e942864ab10e80c4b6d53a14891 Mon Sep 17 00:00:00 2001 From: Chord Date: Mon, 30 Dec 2019 13:50:45 -0500 Subject: [PATCH] Perform auth during login --- api/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/db.js b/api/db.js index dc5ff10..8be8821 100644 --- a/api/db.js +++ b/api/db.js @@ -405,7 +405,7 @@ export async function validate_account(username, password) { if (await bcrypt.compare(password, creds.passhash) === true) { return creds.id; } else { - return creds.id; + return undefined; } } } catch (e) {