Skip to content

Commit

Permalink
GODRIVER-3062 Remove password string from error message. (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Feb 12, 2024
1 parent d35e8de commit 0642825
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/mongo/driver/auth/scram.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ package auth

import (
"context"
"fmt"

"github.com/xdg-go/scram"
"github.com/xdg-go/stringprep"
Expand Down Expand Up @@ -53,7 +52,7 @@ func newScramSHA1Authenticator(cred *Cred) (Authenticator, error) {
func newScramSHA256Authenticator(cred *Cred) (Authenticator, error) {
passprep, err := stringprep.SASLprep.Prepare(cred.Password)
if err != nil {
return nil, newAuthError(fmt.Sprintf("error SASLprepping password '%s'", cred.Password), err)
return nil, newAuthError("error SASLprepping password", err)
}
client, err := scram.SHA256.NewClientUnprepped(cred.Username, passprep, "")
if err != nil {
Expand Down

0 comments on commit 0642825

Please sign in to comment.