1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-09 07:25:21 +02:00

wrong password processing fix

This commit is contained in:
timakasucces 2019-02-11 18:34:03 +03:00
parent a6dfbe7024
commit a45d8752ef

View file

@ -16,6 +16,10 @@ class User {
static async get(passHash) { static async get(passHash) {
const data = await db.findOne({ passHash: passHash }); const data = await db.findOne({ passHash: passHash });
if (!data) {
return null;
}
return new User(data); return new User(data);
} }