User profile information is now successfully saved and retrieved back on account profile page

This commit is contained in:
Sahat Yalkabov
2013-12-05 23:53:14 -05:00
parent 69f41c296a
commit 4d92ad9d16
3 changed files with 29 additions and 17 deletions

6
app.js
View File

@ -50,8 +50,10 @@ app.get('/logout', user.logout);
app.get('/signup', user.getSignup);
app.post('/signup', user.postSignup);
app.get('/account', passportConf.ensureAuthenticated, user.account);
app.get('/admin', passportConf.ensureAuthenticated, passportConf.ensureAdmin(), user.getAdmin);
app.get('/account', passportConf.ensureAuthenticated, user.getAccount);
app.post('/account/profile', passportConf.ensureAuthenticated, user.postAccountProfile);
app.post('/account/settings', passportConf.ensureAuthenticated, user.postAccountSettings);
app.get('/partials/:name', home.partials);
app.get('/api', api.apiBrowser);