mirror of
https://github.com/strapi/strapi.git
synced 2025-12-06 03:52:38 +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({
|
ctx.send({
|
||||||
jwt,
|
jwt: !settings.email_confirmation ? jwt : undefined,
|
||||||
user: _.omit(user.toJSON ? user.toJSON() : user, ['password', 'resetPasswordToken'])
|
user: _.omit(user.toJSON ? user.toJSON() : user, ['password', 'resetPasswordToken'])
|
||||||
});
|
});
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user