Skip to content

Commit

Permalink
Update UsersRouter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed May 19, 2022
1 parent 0a2092c commit 4dfbc1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Routers/UsersRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,10 @@ export class UsersRouter extends ClassesRouter {
};
} catch (err) {
if (err.code === Parse.Error.OBJECT_NOT_FOUND) {
if (req.config.passwordPolicy.resetPasswordSuccessOnInvalidEmail) {
if (
!req.config.passwordPolicy ||
req.config.passwordPolicy.resetPasswordSuccessOnInvalidEmail
) {
return {
response: {},
};
Expand Down

0 comments on commit 4dfbc1c

Please sign in to comment.