Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Chygrinov committed Mar 1, 2019
1 parent c0688b3 commit 68ee2c4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Routers/PublicAPIRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,13 @@ export class PublicAPIRouter extends PromiseRouter {
if (
result.err ===
'Password does not meet the Password Policy requirements.'
) {
)
throw new Parse.Error(Parse.Error.OTHER_CAUSE, `${result.err}`);
} else {
throw new Parse.Error(
Parse.Error.OTHER_CAUSE,
'Failed to reset password (Username/email or token is invalid)'
);
}

throw new Parse.Error(
Parse.Error.OTHER_CAUSE,
'Failed to reset password (Username/email or token is invalid)'
);
}

return Promise.resolve({
Expand Down

0 comments on commit 68ee2c4

Please sign in to comment.