backport of commit 9019203e9f (#23490)

Co-authored-by: Conor McCullough <103977699+conor-mccullough@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core
2023-10-04 10:13:09 -04:00
committed by GitHub
parent b6281e2bad
commit ced9aaa3aa
3 changed files with 62 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ func (m *MongoDB) changeUserPassword(ctx context.Context, username, password str
}
database := cs.Database
if username == m.Username || database == "" {
if database == "" {
database = "admin"
}