feat: Add Parse Server option resetPasswordSuccessOnInvalidEmail to choose success or error response on password reset with invalid email (#7551)
This commit is contained in:
@@ -376,6 +376,13 @@ export class Config {
|
||||
if (passwordPolicy.resetTokenReuseIfValid && !passwordPolicy.resetTokenValidityDuration) {
|
||||
throw 'You cannot use resetTokenReuseIfValid without resetTokenValidityDuration';
|
||||
}
|
||||
|
||||
if (
|
||||
passwordPolicy.resetPasswordSuccessOnInvalidEmail &&
|
||||
typeof passwordPolicy.resetPasswordSuccessOnInvalidEmail !== 'boolean'
|
||||
) {
|
||||
throw 'resetPasswordSuccessOnInvalidEmail must be a boolean value';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user