parse-server
parse-server copied to clipboard
feat: Pass event information to `verifyUserEmails`
trafficstars
Pull Request
- Report security issues confidentially.
- Any contribution is under this license.
- Link this pull request to an issue.
Issue
Closes: https://github.com/parse-community/parse-server/issues/9505
What I Did Added authContext support in getUserController to pass authentication details. Updated setEmailVerifyToken to include authContext when determining whether email verification is required.
Approach Modified getUserController to accept authContext and pass it to UserController. Updated setEmailVerifyToken to check this.authContext when calling verifyUserEmails. Ensured email verification is only triggered based on the authentication context
@mtrezza Just passed event information to verifyUserEmails function as mentioned in the feature!