You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> In Cloud Code, both `masterKey` and `readOnlyMasterKey` set `request.master` to `true`. To distinguish between them, check `request.isReadOnly`. For example, use `request.master && !request.isReadOnly` to ensure full master key access.
310
+
308
311
## Email Verification and Password Reset
309
312
310
313
Verifying user email addresses and enabling password reset via email requires an email adapter. There are many email adapters provided and maintained by the community. The following is an example configuration with an example email adapter. See the [Parse Server Options][server-options] for more details and a full list of available options.
Copy file name to clipboardExpand all lines: src/cloud-code/Parse.Cloud.js
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -730,7 +730,8 @@ module.exports = ParseCloud;
730
730
/**
731
731
* @interface Parse.Cloud.TriggerRequest
732
732
* @property {String} installationId If set, the installationId triggering the request.
733
-
* @property {Boolean} master If true, means the master key was used.
733
+
* @property {Boolean} master If true, means the master key or the read-only master key was used.
734
+
* @property {Boolean} isReadOnly If true, means the read-only master key was used. This is a subset of `master`, so `master` will also be true. Use `master && !isReadOnly` to check for full master key access.
734
735
* @property {Boolean} isChallenge If true, means the current request is originally triggered by an auth challenge.
735
736
* @property {Parse.User} user If set, the user that made the request.
736
737
* @property {Parse.Object} object The object triggering the hook.
@@ -745,7 +746,8 @@ module.exports = ParseCloud;
745
746
/**
746
747
* @interface Parse.Cloud.FileTriggerRequest
747
748
* @property {String} installationId If set, the installationId triggering the request.
748
-
* @property {Boolean} master If true, means the master key was used.
749
+
* @property {Boolean} master If true, means the master key or the read-only master key was used.
750
+
* @property {Boolean} isReadOnly If true, means the read-only master key was used. This is a subset of `master`, so `master` will also be true. Use `master && !isReadOnly` to check for full master key access.
749
751
* @property {Parse.User} user If set, the user that made the request.
750
752
* @property {Parse.File} file The file that triggered the hook.
751
753
* @property {Integer} fileSize The size of the file in bytes.
@@ -784,7 +786,8 @@ module.exports = ParseCloud;
784
786
/**
785
787
* @interface Parse.Cloud.BeforeFindRequest
786
788
* @property {String} installationId If set, the installationId triggering the request.
787
-
* @property {Boolean} master If true, means the master key was used.
789
+
* @property {Boolean} master If true, means the master key or the read-only master key was used.
790
+
* @property {Boolean} isReadOnly If true, means the read-only master key was used. This is a subset of `master`, so `master` will also be true. Use `master && !isReadOnly` to check for full master key access.
788
791
* @property {Parse.User} user If set, the user that made the request.
789
792
* @property {Parse.Query} query The query triggering the hook.
790
793
* @property {String} ip The IP address of the client making the request.
@@ -798,7 +801,8 @@ module.exports = ParseCloud;
798
801
/**
799
802
* @interface Parse.Cloud.AfterFindRequest
800
803
* @property {String} installationId If set, the installationId triggering the request.
801
-
* @property {Boolean} master If true, means the master key was used.
804
+
* @property {Boolean} master If true, means the master key or the read-only master key was used.
805
+
* @property {Boolean} isReadOnly If true, means the read-only master key was used. This is a subset of `master`, so `master` will also be true. Use `master && !isReadOnly` to check for full master key access.
802
806
* @property {Parse.User} user If set, the user that made the request.
803
807
* @property {Parse.Query} query The query triggering the hook.
804
808
* @property {Array<Parse.Object>} results The results the query yielded.
@@ -812,7 +816,8 @@ module.exports = ParseCloud;
812
816
/**
813
817
* @interface Parse.Cloud.FunctionRequest
814
818
* @property {String} installationId If set, the installationId triggering the request.
815
-
* @property {Boolean} master If true, means the master key was used.
819
+
* @property {Boolean} master If true, means the master key or the read-only master key was used.
820
+
* @property {Boolean} isReadOnly If true, means the read-only master key was used. This is a subset of `master`, so `master` will also be true. Use `master && !isReadOnly` to check for full master key access.
816
821
* @property {Parse.User} user If set, the user that made the request.
817
822
* @property {Object} params The params passed to the cloud function.
818
823
* @property {String} ip The IP address of the client making the request.
0 commit comments