minor improvements to onboarding and create skeleton commit page

This commit is contained in:
Quincy Larson
2015-10-02 23:58:22 -07:00
committed by Berkeley Martinez
parent 84eb5ac810
commit 68b12caf48
3 changed files with 60 additions and 1 deletions

View File

@@ -80,6 +80,10 @@ module.exports = function(app) {
router.post('/reset-password', postReset);
router.get('/email-signup', getEmailSignup);
router.get('/email-signin', getEmailSignin);
router.get(
'/commit',
commitToNonprofit
);
router.get(
'/toggle-lockdown-mode',
sendNonUserToMap,
@@ -122,6 +126,12 @@ module.exports = function(app) {
});
}
function commitToNonprofit(req, res) {
res.render('account/commit', {
title: 'Commit to a nonprofit. Commit to your goal.'
});
}
function signout(req, res) {
req.logout();
res.redirect('/');