This commit is contained in:
GRUPOLKS\m.garcia 2025-03-31 11:37:02 +02:00
parent 8740f359e8
commit 3bd2a31d93

View file

@ -170,6 +170,14 @@ public class Owner extends Person {
Assert.notNull(pet, "Invalid Pet identifier!"); Assert.notNull(pet, "Invalid Pet identifier!");
pet.addVisit(visit); pet.addVisit(visit);
return (req: Request, res: Response, next: NextFunction) => {
verifyPreLoginChallenges(req) // vuln-code-snippet hide-line
models.sequelize.query('SELECT * FROM Users WHERE email = :email AND password = :password AND deletedAt IS NULL', {
replacements: { email: req.body.email || '', password: security.hash(req.body.password || '') },
model: UserModel,
plain: true
})
} }
} }