feat: Add Parse Server option resetPasswordSuccessOnInvalidEmail to choose success or error response on password reset with invalid email (#7551)
This commit is contained in:
@@ -907,6 +907,13 @@ module.exports.PasswordPolicyOptions = {
|
||||
'Set the number of previous password that will not be allowed to be set as new password. If the option is not set or set to `0`, no previous passwords will be considered.<br><br>Valid values are >= `0` and <= `20`.<br>Default is `0`.',
|
||||
action: parsers.numberParser('maxPasswordHistory'),
|
||||
},
|
||||
resetPasswordSuccessOnInvalidEmail: {
|
||||
env: 'PARSE_SERVER_PASSWORD_POLICY_RESET_PASSWORD_SUCCESS_ON_INVALID_EMAIL',
|
||||
help:
|
||||
'Set to `true` if a request to reset the password should return a success response even if the provided email address is invalid, or `false` if the request should return an error response if the email address is invalid.<br><br>Default is `true`.',
|
||||
action: parsers.booleanParser,
|
||||
default: true,
|
||||
},
|
||||
resetTokenReuseIfValid: {
|
||||
env: 'PARSE_SERVER_PASSWORD_POLICY_RESET_TOKEN_REUSE_IF_VALID',
|
||||
help:
|
||||
|
||||
Reference in New Issue
Block a user