Skip to content

Commit 54c36a6

Browse files
committed
rollback on app#config.userManagement
1 parent f2a2ad4 commit 54c36a6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

generators/app/generator.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ export default class AppGenerator extends BaseApplicationGenerator<Entity, Appli
6868

6969
get configuring() {
7070
return this.asConfiguringTaskGroup({
71+
setup() {
72+
if (this.jhipsterConfig.applicationType === 'microservice') {
73+
this.jhipsterConfig.skipUserManagement = true;
74+
}
75+
},
7176
fixConfig() {
7277
if (this.jhipsterConfig.jhiPrefix) {
7378
this.jhipsterConfig.jhiPrefix = camelCase(this.jhipsterConfig.jhiPrefix);

generators/app/generators/bootstrap/generator.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ export default class BootstrapApplicationGenerator extends BaseApplicationGenera
4545
get preparing() {
4646
return this.asPreparingTaskGroup({
4747
preparing({ application, applicationDefaults }) {
48-
if (
49-
application.authenticationType === 'oauth2' ||
50-
application.databaseType === 'no' ||
51-
application.applicationType === 'microservice'
52-
) {
48+
if (application.authenticationType === 'oauth2' || application.databaseType === 'no') {
5349
application.skipUserManagement = true;
5450
}
5551

0 commit comments

Comments
 (0)