sequelize-automate icon indicating copy to clipboard operation
sequelize-automate copied to clipboard

Missing password still leads to login with password

Open KrugJu opened this issue 5 years ago • 0 comments

When a password is not specified using the -p flag, it is still passed to sequelize as if there was a password specified. I fixed this by removing the default value for password. Previously:

 .option('password', {
    alias: 'p',
    describe: 'Password for database.',
    type: 'string',
    default: 'root',
  })

Now:

.option('password', {
    alias: 'p',
    describe: 'Password for database.',
    type: 'string',
  })

KrugJu avatar Mar 24 '20 13:03 KrugJu