Merge pull request #6124 from frosato-dev/master

Prevent user registration with confirmed status
This commit is contained in:
Alexandre BODIN 2020-05-19 13:21:58 +02:00 committed by GitHub
commit 9f5844949d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -390,7 +390,7 @@ module.exports = {
}
const params = {
..._.pick(ctx.request.body, ['username', 'email', 'password']),
..._.omit(ctx.request.body, ['confirmed', 'resetPasswordToken']),
provider: 'local',
};