mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
fix(postgres): set dbname=postgres in admin mode (#5346)
This commit is contained in:
parent
8b912645ac
commit
c8142030e9
@ -145,6 +145,8 @@ func (c Config) String(useAdmin bool) string {
|
|||||||
}
|
}
|
||||||
if !useAdmin {
|
if !useAdmin {
|
||||||
fields = append(fields, "dbname="+c.Database)
|
fields = append(fields, "dbname="+c.Database)
|
||||||
|
} else {
|
||||||
|
fields = append(fields, "dbname=postgres")
|
||||||
}
|
}
|
||||||
if user.SSL.Mode != sslDisabledMode {
|
if user.SSL.Mode != sslDisabledMode {
|
||||||
fields = append(fields, "sslrootcert="+user.SSL.RootCert)
|
fields = append(fields, "sslrootcert="+user.SSL.RootCert)
|
||||||
|
Loading…
Reference in New Issue
Block a user