Skip to content

Commit 5f1f7c6

Browse files
committed
Add AUTH_CLEAR_METHOD to isAuthMethodSupported
1 parent 8a6203f commit 5f1f7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server_conf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func NewServerWithAuth(serverVersion string, collationId uint8, defaultAuthMetho
103103
}
104104

105105
func isAuthMethodSupported(authMethod string) bool {
106-
return authMethod == mysql.AUTH_NATIVE_PASSWORD || authMethod == mysql.AUTH_CACHING_SHA2_PASSWORD || authMethod == mysql.AUTH_SHA256_PASSWORD
106+
return authMethod == mysql.AUTH_NATIVE_PASSWORD || authMethod == mysql.AUTH_CACHING_SHA2_PASSWORD || authMethod == mysql.AUTH_SHA256_PASSWORD || authMethod == mysql.AUTH_CLEAR_PASSWORD
107107
}
108108

109109
func (s *Server) InvalidateCache(username string, host string) {

0 commit comments

Comments
 (0)