Skip to content

Commit 0642825

Browse files
committed
GODRIVER-3062 Remove password string from error message. (#1547)
1 parent d35e8de commit 0642825

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

x/mongo/driver/auth/scram.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ package auth
1414

1515
import (
1616
"context"
17-
"fmt"
1817

1918
"github.com/xdg-go/scram"
2019
"github.com/xdg-go/stringprep"
@@ -53,7 +52,7 @@ func newScramSHA1Authenticator(cred *Cred) (Authenticator, error) {
5352
func newScramSHA256Authenticator(cred *Cred) (Authenticator, error) {
5453
passprep, err := stringprep.SASLprep.Prepare(cred.Password)
5554
if err != nil {
56-
return nil, newAuthError(fmt.Sprintf("error SASLprepping password '%s'", cred.Password), err)
55+
return nil, newAuthError("error SASLprepping password", err)
5756
}
5857
client, err := scram.SHA256.NewClientUnprepped(cred.Username, passprep, "")
5958
if err != nil {

0 commit comments

Comments
 (0)