MCPcopy
hub / github.com/parse-community/parse-server / verifyUserEmails

Function verifyUserEmails

src/RestWrite.js:1071–1071  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1069 // structure is to avoid unnecessarily executing subsequent functions if previous ones fail in the
1070 // conditional statement below, as a developer may decide to execute expensive operations in them
1071 const verifyUserEmails = async () => this.config.verifyUserEmails === true || (typeof this.config.verifyUserEmails === 'function' && await Promise.resolve(this.config.verifyUserEmails(request)) === true);
1072 const preventLoginWithUnverifiedEmail = async () => this.config.preventLoginWithUnverifiedEmail === true || (typeof this.config.preventLoginWithUnverifiedEmail === 'function' && await Promise.resolve(this.config.preventLoginWithUnverifiedEmail(request)) === true);
1073 // If verification is required
1074 if (await verifyUserEmails() && await preventLoginWithUnverifiedEmail()) {

Callers 2

RestWrite.jsFile · 0.85

Calls 1

verifyUserEmailsMethod · 0.80

Tested by

no test coverage detected