Add separate password reset view

This commit is contained in:
Johannes Zellner
2023-06-15 16:26:06 +02:00
parent b6739e9d77
commit 9d3fa94960
7 changed files with 340 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ async function initializeExpressSync() {
// login/logout routes
router.post('/api/v1/cloudron/login', json, password, routes.cloudron.login);
router.get ('/api/v1/cloudron/logout', token, routes.cloudron.logout); // this will invalidate the token if any and redirect to /login.html always
router.get ('/api/v1/cloudron/logout', token, routes.cloudron.logout); // this will invalidate the token if any and redirect to / always
router.post('/api/v1/cloudron/password_reset_request', json, routes.cloudron.passwordResetRequest);
router.post('/api/v1/cloudron/password_reset', json, routes.cloudron.passwordReset);
router.post('/api/v1/cloudron/setup_account', json, routes.cloudron.setupAccount);