sequelize-automate
sequelize-automate copied to clipboard
Missing password still leads to login with password
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',
})