Add POST account/setup to distinguish between setup and password reset

This commit is contained in:
Johannes Zellner
2016-04-01 16:35:22 +02:00
parent c90a8041e2
commit 7a5ac1a2f5
3 changed files with 39 additions and 18 deletions

View File

@@ -129,6 +129,7 @@ function initializeExpressSync() {
router.get ('/api/v1/session/password/reset.html', csrf, routes.oauth2.passwordResetSite);
router.post('/api/v1/session/password/reset', csrf, routes.oauth2.passwordReset);
router.get ('/api/v1/session/account/setup.html', csrf, routes.oauth2.accountSetupSite);
router.post('/api/v1/session/account/setup', csrf, routes.oauth2.accountSetup);
// oauth2 routes
router.get ('/api/v1/oauth/dialog/authorize', routes.oauth2.authorization);