Adds ability to expire email verify token (#2216)
This commit is contained in:
committed by
Drew
parent
033bc317e6
commit
6f292059ba
11
README.md
11
README.md
@@ -226,6 +226,17 @@ var server = ParseServer({
|
||||
// Enable email verification
|
||||
verifyUserEmails: true,
|
||||
|
||||
// if `verifyUserEmails` is `true` and
|
||||
// if `emailVerifyTokenValidityDuration` is `undefined` then
|
||||
// email verify token never expires
|
||||
// else
|
||||
// email verify token expires after `emailVerifyTokenValidityDuration`
|
||||
//
|
||||
// `emailVerifyTokenValidityDuration` defaults to `undefined`
|
||||
//
|
||||
// email verify token below expires in 2 hours (= 2 * 60 * 60 == 7200 seconds)
|
||||
emailVerifyTokenValidityDuration = 2 * 60 * 60, // in seconds (2 hours = 7200 seconds)
|
||||
|
||||
// set preventLoginWithUnverifiedEmail to false to allow user to login without verifying their email
|
||||
// set preventLoginWithUnverifiedEmail to true to prevent user from login if their email is not verified
|
||||
preventLoginWithUnverifiedEmail: false, // defaults to false
|
||||
|
||||
Reference in New Issue
Block a user