Skip to content

Commit

Permalink
do not ask for additional okta properties if not selected
Browse files Browse the repository at this point in the history
  • Loading branch information
atomfrede committed Sep 15, 2021
1 parent bd2988f commit 67d5308
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generators/heroku/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ module.exports = class extends BaseBlueprintGenerator {
default: 1,
},
{
when: answers => answers.useOkta,
type: 'input',
name: 'oktaAdminLogin',
message: 'Login (valid email) for the JHipster Admin user:',
Expand All @@ -255,6 +256,7 @@ module.exports = class extends BaseBlueprintGenerator {
},
},
{
when: answers => answers.useOkta,
type: 'confirm',
name: 'oktaAdminPassword',
message: `${chalk.blue('Take note of this password!')} You will need it on your first login: ${chalk.blue(
Expand Down

0 comments on commit 67d5308

Please sign in to comment.