mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix token creation on admin registration (#648)
This commit is contained in:
parent
de33a6a7b6
commit
78d179c459
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module.exports = (grunt) ->
|
||||||
user.save (error) ->
|
user.save (error) ->
|
||||||
throw error if error?
|
throw error if error?
|
||||||
ONE_WEEK = 7 * 24 * 60 * 60 # seconds
|
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?
|
return next(err) if err?
|
||||||
|
|
||||||
console.log ""
|
console.log ""
|
||||||
|
|
Loading…
Reference in a new issue