Skip to content

Commit

Permalink
Initialize values not defined in older type configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
richtera committed Oct 14, 2012
1 parent 2d6f3c4 commit b914956
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ function bootApplication(cluster, next) {
calipso.auth = {password: app.config.get('server:authentication:password')
, migrate2pbkdf2: app.config.get('server:authentication:migrate2pbkdf2')
};
if (calipso.auth.password === undefined)
calipso.auth.password = true;
if (calipso.auth.migrate2pbkdf2 === undefined)
calipso.auth.migrate2pbkdf2 = false;

var appId = app.config.get('server:authentication:facebookAppId');
var appSecret = app.config.get('server:authentication:facebookAppSecret');
Expand Down

0 comments on commit b914956

Please sign in to comment.