File tree 1 file changed +4
-1
lines changed
app/templates/server/config
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) {
26
26
app . set ( 'view engine' , 'html' ) ; < % } % > < % if ( filters . jade ) { % >
27
27
app . set ( 'view engine' , 'jade' ) ; < % } % >
28
28
app . use ( compression ( ) ) ;
29
- app . use ( bodyParser ( ) ) ;
29
+ app . use ( bodyParser . urlencoded ( { extended : false } ) ) ;
30
+ app . use ( bodyParser . json ( ) ) ;
30
31
app . use ( methodOverride ( ) ) ;
31
32
app . use ( cookieParser ( ) ) ;
32
33
< % if ( filters . auth ) { % > app . use ( passport . initialize ( ) ) ; < % } % > < % if ( filters . twitterAuth ) { % >
@@ -35,6 +36,8 @@ module.exports = function(app) {
35
36
// We need to enable sessions for passport twitter because its an oauth 1.0 strategy
36
37
app . use ( session ( {
37
38
secret : config . secrets . session ,
39
+ resave : true ,
40
+ saveUninitialized : true ,
38
41
store : new mongoStore ( {
39
42
url : config . mongo . uri ,
40
43
collection : 'sessions'
You can’t perform that action at this time.
0 commit comments