mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-09 08:55:13 -04:00
Fix empty string check for password (#4923)
This commit is contained in:
parent
146a6844e1
commit
5d26376460
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ func NewMySQLBackend(conf map[string]string, logger log.Logger) (physical.Backen
|
|||
return nil, fmt.Errorf("missing username")
|
||||
}
|
||||
password, ok := conf["password"]
|
||||
if !ok || username == "" {
|
||||
if !ok || password == "" {
|
||||
return nil, fmt.Errorf("missing password")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue