Skip to content

Commit

Permalink
GODRIVER-3062 Remove password string from error message. (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu authored Jan 4, 2024
1 parent c04c1ea commit cee488e
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 cee488e

Please sign in to comment.