File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/templates/server/config Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ module.exports = function(app) {
2626 app . set ( 'view engine' , 'html' ) ; < % } % > < % if ( filters . jade ) { % >
2727 app . set ( 'view engine' , 'jade' ) ; < % } % >
2828 app . use ( compression ( ) ) ;
29- app . use ( bodyParser ( ) ) ;
29+ app . use ( bodyParser . urlencoded ( { extended : false } ) ) ;
30+ app . use ( bodyParser . json ( ) ) ;
3031 app . use ( methodOverride ( ) ) ;
3132 app . use ( cookieParser ( ) ) ;
3233 < % if ( filters . auth ) { % > app . use ( passport . initialize ( ) ) ; < % } % > < % if ( filters . twitterAuth ) { % >
@@ -35,6 +36,8 @@ module.exports = function(app) {
3536 // We need to enable sessions for passport twitter because its an oauth 1.0 strategy
3637 app . use ( session ( {
3738 secret : config . secrets . session ,
39+ resave : true ,
40+ saveUninitialized : true ,
3841 store : new mongoStore ( {
3942 url : config . mongo . uri ,
4043 collection : 'sessions'
You can’t perform that action at this time.
0 commit comments