mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 22:09:16 +01:00
Fix existing bugs in tests, refactor users
This commit is contained in:
parent
b7587f8d3f
commit
65ff53e90c
19 changed files with 385 additions and 117 deletions
|
|
@ -35,7 +35,7 @@ export default async (
|
|||
email,
|
||||
});
|
||||
|
||||
if (!user || !(await Bun.password.verify(password, user.password)))
|
||||
if (!user || !(await Bun.password.verify(password, user.password || "")))
|
||||
return errorResponse("Invalid username or password", 401);
|
||||
|
||||
// Get application
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue