backport of commit 9019203e9f (#23492)

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:30:43 -04:00
committed by GitHub
parent c9f0387ecd
commit 1e137ae6f4
3 changed files with 62 additions and 2 deletions

View File

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