File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ func (c *Conn) handleAuthSwitchResponse() error {
25
25
return err
26
26
}
27
27
if ! bytes .Equal (CalcPassword (c .salt , []byte (c .password )), authData ) {
28
- return ErrAccessDenied
28
+ return errAccessDenied ( c . password )
29
29
}
30
30
return nil
31
31
@@ -82,7 +82,7 @@ func (c *Conn) handleCachingSha2PasswordFullAuth(authData []byte) error {
82
82
if bytes .Equal (authData , []byte (c .password )) {
83
83
return nil
84
84
}
85
- return ErrAccessDenied
85
+ return errAccessDenied ( c . password )
86
86
} else {
87
87
// client either request for the public key or send the encrypted password
88
88
if len (authData ) == 1 && authData [0 ] == 0x02 {
@@ -111,7 +111,7 @@ func (c *Conn) handleCachingSha2PasswordFullAuth(authData []byte) error {
111
111
if bytes .Equal (plain , dbytes ) {
112
112
return nil
113
113
}
114
- return ErrAccessDenied
114
+ return errAccessDenied ( c . password )
115
115
}
116
116
}
117
117
You can’t perform that action at this time.
0 commit comments