feat: Add conditional email verification via dynamic Parse Server options verifyUserEmails, sendUserEmailVerification that now accept functions (#8425)
This commit is contained in:
@@ -496,6 +496,12 @@ module.exports.ParseServerOptions = {
|
||||
action: parsers.objectParser,
|
||||
default: {},
|
||||
},
|
||||
sendUserEmailVerification: {
|
||||
env: 'PARSE_SERVER_SEND_USER_EMAIL_VERIFICATION',
|
||||
help:
|
||||
'Set to `false` to prevent sending of verification email. Supports a function with a return value of `true` or `false` for conditional email sending.<br><br>Default is `true`.<br>',
|
||||
default: true,
|
||||
},
|
||||
serverCloseComplete: {
|
||||
env: 'PARSE_SERVER_SERVER_CLOSE_COMPLETE',
|
||||
help: 'Callback when server has closed',
|
||||
@@ -542,8 +548,7 @@ module.exports.ParseServerOptions = {
|
||||
verifyUserEmails: {
|
||||
env: 'PARSE_SERVER_VERIFY_USER_EMAILS',
|
||||
help:
|
||||
'Set to `true` to require users to verify their email address to complete the sign-up process.<br><br>Default is `false`.',
|
||||
action: parsers.booleanParser,
|
||||
'Set to `true` to require users to verify their email address to complete the sign-up process. Supports a function with a return value of `true` or `false` for conditional verification.<br><br>Default is `false`.',
|
||||
default: false,
|
||||
},
|
||||
webhookKey: {
|
||||
|
||||
Reference in New Issue
Block a user