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

Function NewLoginPasswordFromConfig

bridge/core/auth/login_password.go:31–42  ·  view source on GitHub ↗
(conf map[string]string)

Source from the content-addressed store, hash-verified

29}
30
31func NewLoginPasswordFromConfig(conf map[string]string) (*LoginPassword, error) {
32 base, err := newCredentialBaseFromData(conf)
33 if err != nil {
34 return nil, err
35 }
36
37 return &LoginPassword{
38 credentialBase: base,
39 Login: conf[keyringKeyLoginPasswordLogin],
40 Password: conf[keyringKeyLoginPasswordPassword],
41 }, nil
42}
43
44func (lp *LoginPassword) ID() entity.Id {
45 h := sha256.New()

Callers 1

decodeFunction · 0.85

Calls 1

Tested by

no test coverage detected