@@ -67,7 +67,7 @@ func scrambleValidation(cached, nonce, scramble []byte) bool {
6767
6868func (c * Conn ) compareNativePasswordAuthData (clientAuthData []byte , credential Credential ) error {
6969 if len (clientAuthData ) == 0 {
70- if credential .HasEmptyPassword () {
70+ if credential .hasEmptyPassword () {
7171 return nil
7272 }
7373 return ErrAccessDeniedNoPassword
@@ -92,7 +92,7 @@ func (c *Conn) compareNativePasswordAuthData(clientAuthData []byte, credential C
9292func (c * Conn ) compareSha256PasswordAuthData (clientAuthData []byte , credential Credential ) error {
9393 // Empty passwords are not hashed, but sent as empty string
9494 if len (clientAuthData ) == 0 {
95- if credential .HasEmptyPassword () {
95+ if credential .hasEmptyPassword () {
9696 return nil
9797 }
9898 return ErrAccessDeniedNoPassword
@@ -137,7 +137,7 @@ func (c *Conn) compareSha256PasswordAuthData(clientAuthData []byte, credential C
137137func (c * Conn ) compareCacheSha2PasswordAuthData (clientAuthData []byte ) error {
138138 // Empty passwords are not hashed, but sent as empty string
139139 if len (clientAuthData ) == 0 {
140- if c .credential .HasEmptyPassword () {
140+ if c .credential .hasEmptyPassword () {
141141 return nil
142142 }
143143 return ErrAccessDeniedNoPassword
0 commit comments