code: function askForAdminPassword() {
      if (this.regenerate || this.serviceDiscoveryType !== 'eureka') return;
  
      const done = this.async();
  
      const prompts = [
          {
              type: 'input',
              name: 'adminPassword',
              message: 'Enter the admin password used to secure the JHipster Registry',
              default: 'admin',
              validate: input => (input.length < 5 ? 'The password must have at least 5 characters' : true)
          }
      ];
  
      this.prompt(prompts).then(props => {
          this.adminPassword = props.adminPassword;
          this.adminPasswordBase64 = getBase64Secret(this.adminPassword);
          done();
      });
  }
docs: Ask For Admin Password