update todo

This commit is contained in:
Andras Bacsai 2022-07-22 21:56:17 +00:00
parent fa65c10a0b
commit 46205f7395

View File

@ -155,7 +155,6 @@ export async function login(request: FastifyRequest<Login>, reply: FastifyReply)
}
if (userFound) {
if (userFound.type === 'email') {
// TODO: Review this one
if (userFound.password === 'RESETME') {
const hashedPassword = await hashPassword(password);
if (userFound.updatedAt < new Date(Date.now() - 1000 * 60 * 10)) {