Skip to content

Commit

Permalink
Adds ability to expire email verify token (#2216)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherukumilli authored and drew-gross committed Jul 19, 2016
1 parent 033bc31 commit 6f29205
Show file tree
Hide file tree
Showing 10 changed files with 591 additions and 8 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 6f29205

Please sign in to comment.