mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 15:40:57 -07:00
Fix bug
This commit is contained in:
parent
cd6455d82f
commit
8f0613648f
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,12 @@ export default async (req: express.Request, res: express.Response) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Validate password
|
||||||
|
if (password == '') {
|
||||||
|
res.sendStatus(400);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Fetch exist user that same username
|
// Fetch exist user that same username
|
||||||
const usernameExist = await User
|
const usernameExist = await User
|
||||||
.count({
|
.count({
|
||||||
|
|
Loading…
Reference in a new issue