mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix(postgres): no password in connection string when empty (#356)
This commit is contained in:
parent
65b17a83fb
commit
9c277e2efb
@ -37,10 +37,13 @@ func (s *SQL) connectionString() string {
|
||||
"host=" + s.Host,
|
||||
"port=" + s.Port,
|
||||
"user=" + s.User,
|
||||
"password=" + s.Password,
|
||||
"dbname=" + s.Database,
|
||||
"sslmode=" + s.SSL.Mode,
|
||||
}
|
||||
if s.Password != "" {
|
||||
fields = append(fields, "password="+s.Password)
|
||||
}
|
||||
|
||||
if s.SSL.Mode != sslDisabledMode {
|
||||
fields = append(fields, []string{
|
||||
"ssl=true",
|
||||
|
Loading…
Reference in New Issue
Block a user