mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-09 15:35:25 +02:00
wrong password processing fix
This commit is contained in:
parent
a6dfbe7024
commit
a45d8752ef
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ class User {
|
|||
static async get(passHash) {
|
||||
const data = await db.findOne({ passHash: passHash });
|
||||
|
||||
if (!data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return new User(data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue