Skip to content

Commit 53e541f

Browse files
committed
style(oauth): fixin code styling for oauth
1 parent 507e45a commit 53e541f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: app/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ var AngularFullstackGenerator = yeoman.generators.Base.extend({
166166
if(answers.mongoose) this.filters.mongoose = true;
167167
if(answers.auth) this.filters.auth = true;
168168
if(answers.oauth) {
169-
if(answers.oauth.length) this.filters['oauth'] = true;
169+
if(answers.oauth.length) this.filters.oauth = true;
170170
answers.oauth.forEach(function(oauthStrategy) {
171171
this.filters[oauthStrategy] = true;
172172
}.bind(this));

Diff for: app/templates/server/config/_local.env.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@
88
module.exports = {
99
DOMAIN: 'http://localhost:9000',
1010
SESSION_SECRET: "<%= _.slugify(appname) + '-secret' %>",<% if (filters.facebookAuth) { %>
11+
1112
FACEBOOK_ID: 'app-id',
1213
FACEBOOK_SECRET: 'secret',<% } if (filters.twitterAuth) { %>
14+
1315
TWITTER_ID: 'app-id',
1416
TWITTER_SECRET: 'secret',<% } if (filters.googleAuth) { %>
17+
1518
GOOGLE_ID: 'app-id',
16-
GOOGLE_SECRET: 'secret',<% } %>
19+
GOOGLE_SECRET: 'secret',
20+
<% } %>
1721
// Control debug level for modules using visionmedia/debug
1822
DEBUG: ''
1923
};

0 commit comments

Comments
 (0)