Skip to content

Commit 11d324b

Browse files
committed
fix(gen): Fixed missing oauth property in .yo-rc.json after 2.0.5 update
1 parent 4000c4a commit 11d324b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: app/index.js

+10
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)