mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-18 06:11:33 -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 ""
|