mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 22:53:40 -05:00
12 lines
484 B
Diff
12 lines
484 B
Diff
|
--- CreateAndDestoryUsers.coffee
|
||
|
+++ CreateAndDestoryUsers.coffee
|
||
|
@@ -21,7 +21,7 @@ module.exports = (grunt) ->
|
||
|
user.save (error) ->
|
||
|
throw error if error?
|
||
|
ONE_WEEK = 7 * 24 * 60 * 60 # seconds
|
||
|
- OneTimeTokenHandler.getNewToken user._id, { expiresIn: ONE_WEEK }, (err, token)->
|
||
|
+ OneTimeTokenHandler.getNewToken "password", { expiresIn: ONE_WEEK, email:user.email, user_id: user._id.toString() }, (err, token)->
|
||
|
return next(err) if err?
|
||
|
|
||
|
console.log ""
|