Fix empty string check for password (#4923)

This commit is contained in:
Richie Yeung 2018-07-13 20:35:06 +01:00 committed by Brian Kassouf
parent 146a6844e1
commit 5d26376460

View File

@ -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")
}