We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec37a29 commit 751c147Copy full SHA for 751c147
x/mongo/driver/auth/scram.go
@@ -14,7 +14,6 @@ package auth
14
15
import (
16
"context"
17
- "fmt"
18
19
"github.com/xdg-go/scram"
20
"github.com/xdg-go/stringprep"
@@ -53,7 +52,7 @@ func newScramSHA1Authenticator(cred *Cred) (Authenticator, error) {
53
52
func newScramSHA256Authenticator(cred *Cred) (Authenticator, error) {
54
passprep, err := stringprep.SASLprep.Prepare(cred.Password)
55
if err != nil {
56
- return nil, newAuthError(fmt.Sprintf("error SASLprepping password '%s'", cred.Password), err)
+ return nil, newAuthError("error SASLprepping password", err)
57
}
58
client, err := scram.SHA256.NewClientUnprepped(cred.Username, passprep, "")
59
0 commit comments