mirror of
https://github.com/strapi/strapi.git
synced 2025-09-03 05:39:36 +00:00
Merge pull request #6124 from frosato-dev/master
Prevent user registration with confirmed status
This commit is contained in:
commit
9f5844949d
@ -390,7 +390,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
..._.pick(ctx.request.body, ['username', 'email', 'password']),
|
..._.omit(ctx.request.body, ['confirmed', 'resetPasswordToken']),
|
||||||
provider: 'local',
|
provider: 'local',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user