We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0688b3 commit 68ee2c4Copy full SHA for 68ee2c4
src/Routers/PublicAPIRouter.js
@@ -210,14 +210,13 @@ export class PublicAPIRouter extends PromiseRouter {
210
if (
211
result.err ===
212
'Password does not meet the Password Policy requirements.'
213
- ) {
+ )
214
throw new Parse.Error(Parse.Error.OTHER_CAUSE, `${result.err}`);
215
- } else {
216
- throw new Parse.Error(
217
- Parse.Error.OTHER_CAUSE,
218
- 'Failed to reset password (Username/email or token is invalid)'
219
- );
220
- }
+
+ throw new Parse.Error(
+ Parse.Error.OTHER_CAUSE,
+ 'Failed to reset password (Username/email or token is invalid)'
+ );
221
}
222
223
return Promise.resolve({
0 commit comments