Skip to content

Commit 3816bb0

Browse files
author
Philip Hurst
committed
improve logic for calculating verifier
1 parent d64603e commit 3816bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/pgbouncer/reconcile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ func Secret(ctx context.Context,
6060
verifier := string(inSecret.Data[verifierSecretKey])
6161

6262
// If the password is empty, generate a new one.
63-
// The user may not have provided a SCRAM verifier.
63+
// Ignore the verifier for now.
6464
if err == nil && len(password) == 0 {
65-
password, verifier, err = generatePassword()
65+
password, _, err = generatePassword()
6666
err = errors.WithStack(err)
6767
}
6868

0 commit comments

Comments
 (0)