Skip to content

Commit 80c125d

Browse files
committed
allow creation of cleartext password credentials
1 parent 88a5a80 commit 80c125d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/credential_provider.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ func NewCredential(password string, authPluginName string) (Credential, error) {
6262
}
6363
c.Password = hash
6464

65+
case mysql.AUTH_CLEAR_PASSWORD:
66+
c.Password = password
67+
6568
default:
6669
return c, errors.Errorf("unknown authentication plugin name '%s'", c.AuthPluginName)
6770
}

0 commit comments

Comments
 (0)