MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / acquirePassword

Method acquirePassword

IceFireDB-SQLite/pkg/mysql/server/auth.go:56–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func (c *Conn) acquirePassword() error {
57 password, found, err := c.credentialProvider.GetCredential(c.user)
58 if err != nil {
59 return err
60 }
61 if !found {
62 return NewDefaultError(ER_NO_SUCH_USER, c.user, c.RemoteAddr().String())
63 }
64 c.password = password
65 return nil
66}
67
68func errAccessDenied(password string) error {
69 if password == "" {

Calls 3

GetCredentialMethod · 0.65
StringMethod · 0.65
NewDefaultErrorFunction · 0.50

Tested by

no test coverage detected