update todo
This commit is contained in:
parent
fa65c10a0b
commit
46205f7395
@ -155,7 +155,6 @@ export async function login(request: FastifyRequest<Login>, reply: FastifyReply)
|
|||||||
}
|
}
|
||||||
if (userFound) {
|
if (userFound) {
|
||||||
if (userFound.type === 'email') {
|
if (userFound.type === 'email') {
|
||||||
// TODO: Review this one
|
|
||||||
if (userFound.password === 'RESETME') {
|
if (userFound.password === 'RESETME') {
|
||||||
const hashedPassword = await hashPassword(password);
|
const hashedPassword = await hashPassword(password);
|
||||||
if (userFound.updatedAt < new Date(Date.now() - 1000 * 60 * 10)) {
|
if (userFound.updatedAt < new Date(Date.now() - 1000 * 60 * 10)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user