mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add a skeleton of a callback endpoint for merging accounts via email
This commit is contained in:
parent
ba221a1135
commit
958c7a19b6
3 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
module.exports = AccountMergeEmailController =
|
||||||
|
|
||||||
|
confirmMergeFromEmail: (req, res, next) ->
|
||||||
|
return res.render('account_merge/finish', {})
|
|
@ -50,6 +50,7 @@ TokenAccessController = require('./Features/TokenAccess/TokenAccessController')
|
||||||
Features = require('./infrastructure/Features')
|
Features = require('./infrastructure/Features')
|
||||||
LinkedFilesRouter = require './Features/LinkedFiles/LinkedFilesRouter'
|
LinkedFilesRouter = require './Features/LinkedFiles/LinkedFilesRouter'
|
||||||
TemplatesRouter = require './Features/Templates/TemplatesRouter'
|
TemplatesRouter = require './Features/Templates/TemplatesRouter'
|
||||||
|
AccountMergeEmailController = require './Features/AccountMerge/AccountMergeEmailController'
|
||||||
|
|
||||||
logger = require("logger-sharelatex")
|
logger = require("logger-sharelatex")
|
||||||
_ = require("underscore")
|
_ = require("underscore")
|
||||||
|
@ -68,6 +69,8 @@ module.exports = class Router
|
||||||
webRouter.get '/logout', UserController.logout
|
webRouter.get '/logout', UserController.logout
|
||||||
webRouter.get '/restricted', AuthorizationMiddlewear.restricted
|
webRouter.get '/restricted', AuthorizationMiddlewear.restricted
|
||||||
|
|
||||||
|
webRouter.get '/account-merge/email/confirm', AccountMergeEmailController.confirmMergeFromEmail
|
||||||
|
|
||||||
if Features.hasFeature('registration')
|
if Features.hasFeature('registration')
|
||||||
webRouter.get '/register', UserPagesController.registerPage
|
webRouter.get '/register', UserPagesController.registerPage
|
||||||
AuthenticationController.addEndpointToLoginWhitelist '/register'
|
AuthenticationController.addEndpointToLoginWhitelist '/register'
|
||||||
|
|
15
services/web/app/views/account_merge/finish.pug
Normal file
15
services/web/app/views/account_merge/finish.pug
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
extends ../layout
|
||||||
|
|
||||||
|
block content
|
||||||
|
.content.content-alt
|
||||||
|
.container
|
||||||
|
.row
|
||||||
|
.col-md-12.col-lg-10.col-lg-offset-1
|
||||||
|
.card
|
||||||
|
.page-header
|
||||||
|
h1 Account Merge Complete
|
||||||
|
|
||||||
|
div.container-fluid
|
||||||
|
.row
|
||||||
|
.col-md-12
|
||||||
|
p Test
|
Loading…
Reference in a new issue