nodejh / sequelize-automate

Automatically generate bare sequelize models from your database.
MIT License
116 stars 22 forks source link

Missing password still leads to login with password #13

Open KrugJu opened 4 years ago

KrugJu commented 4 years ago

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',
  })