mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
Fill out getInviteByToken
This commit is contained in:
@@ -42,6 +42,14 @@ module.exports = CollaboratorsInviteController =
|
||||
viewInvite: (req, res, next) ->
|
||||
projectId = req.params.Project_id
|
||||
token = req.params.token
|
||||
CollaboratorsInviteHandler.getInviteByToken projectId, token, (err, invite) ->
|
||||
if err?
|
||||
logger.err {projectId, token}, "error getting invite by token"
|
||||
return next(err)
|
||||
if !invite
|
||||
logger.log {projectId, token}, "no invite found for token"
|
||||
return res.redirect("/")
|
||||
res.render "project/invite", {invite}
|
||||
|
||||
|
||||
acceptInvite: (req, res, next) ->
|
||||
|
||||
1
services/web/app/views/project/invite.jade
Normal file
1
services/web/app/views/project/invite.jade
Normal file
@@ -0,0 +1 @@
|
||||
h1 Invite TEST
|
||||
Reference in New Issue
Block a user