MCPcopy Create free account
hub / github.com/git-bug/git-bug / Validate

Method Validate

bridge/core/auth/login_password.go:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (lp *LoginPassword) Validate() error {
58 err := lp.credentialBase.validate()
59 if err != nil {
60 return err
61 }
62 if lp.Login == "" {
63 return fmt.Errorf("missing login")
64 }
65 if lp.Password == "" {
66 return fmt.Errorf("missing password")
67 }
68 return nil
69}
70
71func (lp *LoginPassword) toConfig() map[string]string {
72 return map[string]string{

Callers

nothing calls this directly

Calls 2

ErrorfMethod · 0.80
validateMethod · 0.45

Tested by

no test coverage detected