Skip to content

Commit 4b65019

Browse files
committed
Merge pull request #407 from chester1000/oauth-gen-fix
fix(gen): Fixed missing `oauth` prop in `.yo-rc.json` after 2.0.5 update
2 parents 4000c4a + 11d324b commit 4b65019

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ var AngularFullstackGenerator = yeoman.generators.Base.extend({
4242
default: true,
4343
}], function (answers) {
4444
this.skipConfig = answers.skipConfig;
45+
46+
// NOTE: temp(?) fix for #403
47+
if(typeof this.oauth==='undefined') {
48+
var strategies = Object.keys(this.filters).filter(function(key) {
49+
return key.match(/Auth$/) && key;
50+
});
51+
52+
if(strategies.length) this.config.set('oauth', true);
53+
}
54+
4555
cb();
4656
}.bind(this));
4757
} else {

0 commit comments

Comments
 (0)