Commit b52d3a46 authored by les's avatar les
Browse files

[fix] register email confirmation

parent aa63c3e7
......@@ -229,11 +229,11 @@ const userController = {
if (!req.body.password) { delete req.body.password }
await user.update(req.body)
if (!user.is_active && req.body.is_active && user.recover_code) {
mail.send(user.email, 'confirm', { user, config })
}
await user.update(req.body)
res.json(user)
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment