whitelist /user/activate for non public access

This commit is contained in:
Henry Oswald 2016-06-13 15:24:41 +01:00
parent 84db5ec23a
commit f9fdec8a15

View file

@ -80,6 +80,7 @@ module.exports = class Router
webRouter.get '/blog/*', BlogController.getPage
webRouter.get '/user/activate', UserPagesController.activateAccountPage
AuthenticationController.addEndpointToLoginWhitelist '/user/activate'
webRouter.get '/user/settings', AuthenticationController.requireLogin(), UserPagesController.settingsPage
webRouter.post '/user/settings', AuthenticationController.requireLogin(), UserController.updateUserSettings