mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 13:51:11 +00:00
get user_id directly
This commit is contained in:
parent
7384a08cb4
commit
f9030a0a38
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ module.exports = UniversityController =
|
||||||
|
|
||||||
|
|
||||||
getIndexPage: (req, res)->
|
getIndexPage: (req, res)->
|
||||||
user = AuthenticationController.getSessionUser(req)
|
user_id = AuthenticationController.getLoggedInUserId(req)
|
||||||
client = sixpack.client(user?._id?.toString() || req.ip)
|
client = sixpack.client(user_id.toString() || req.ip)
|
||||||
client.participate 'instapage-pages', ['default', 'instapage'], (err, response)->
|
client.participate 'instapage-pages', ['default', 'instapage'], (err, response)->
|
||||||
if response?.alternative?.name == "instapage"
|
if response?.alternative?.name == "instapage"
|
||||||
return res.redirect("/i/university")
|
return res.redirect("/i/university")
|
||||||
|
|
Loading…
Reference in a new issue