(WIP) Added pw reset token row, added checks to reset function
This commit is contained in:
@ -73,9 +73,9 @@ async function addHttpRoutes(app: Application) {
|
||||
}
|
||||
|
||||
const userService = new UserService()
|
||||
const user = await userService.resetPassword( email )
|
||||
const sentEmail = await userService.resetPassword( email )
|
||||
|
||||
if (user) {
|
||||
if (sentEmail) {
|
||||
return res.status(200).json({ message: 'Email has been sent' })
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user