mirror of
https://github.com/strapi/strapi.git
synced 2025-12-04 19:13:20 +00:00
Remove token from register route if confirm email is required
This commit is contained in:
parent
b0c12a3912
commit
d110a942eb
@ -332,7 +332,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
ctx.send({
|
||||
jwt,
|
||||
jwt: !settings.email_confirmation ? jwt : undefined,
|
||||
user: _.omit(user.toJSON ? user.toJSON() : user, ['password', 'resetPasswordToken'])
|
||||
});
|
||||
} catch(err) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user