File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,6 @@ ParseCloud.afterLogout = function (handler) {
350350} ;
351351
352352/**
353- *
354353 * Registers the before password reset request function.
355354 *
356355 * **Available in Cloud Code only.**
@@ -359,13 +358,14 @@ ParseCloud.afterLogout = function (handler) {
359358 * before the reset email is sent. It is triggered after the user is found
360359 * by email, but before the reset token is generated and the email is sent.
361360 *
361+ * Code example:
362+ *
362363 * ```
363- * Parse.Cloud.beforePasswordResetRequest((request) => {
364- * // Validate email or user properties
365- * if (!request.object.get('emailVerified')) {
366- * throw new Parse.Error(Parse.Error.EMAIL_NOT_FOUND, 'Email not verified');
364+ * Parse.Cloud.beforePasswordResetRequest(request => {
365+ * if (request.object.get('banned')) {
366+ * throw new Parse.Error(Parse.Error.EMAIL_NOT_FOUND, 'User is banned.');
367367 * }
368- * })
368+ * });
369369 *
370370 * ```
371371 *
You can’t perform that action at this time.
0 commit comments