mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 22:15:50 +00:00
Update Owner.java
Signed-off-by: AulaEmpresaLKS <129507941+AulaEmpresaLKS@users.noreply.github.com>
This commit is contained in:
parent
b807810178
commit
6bd4cdbbe8
1 changed files with 0 additions and 8 deletions
|
@ -170,14 +170,6 @@ public class Owner extends Person {
|
||||||
Assert.notNull(pet, "Invalid Pet identifier!");
|
Assert.notNull(pet, "Invalid Pet identifier!");
|
||||||
|
|
||||||
pet.addVisit(visit);
|
pet.addVisit(visit);
|
||||||
|
|
||||||
(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
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue