MCPcopy Index your code
hub / github.com/dearcode/candy / updateUserPassword

Method updateUserPassword

gate/store.go:69–79  ·  view source on GitHub ↗
(user, passwd string)

Source from the content-addressed store, hash-verified

67}
68
69func (s *store) updateUserPassword(user, passwd string) (int64, error) {
70 log.Debugf("updateUserPassword user:%v passwd:%v", user, passwd)
71 req := &meta.StoreUpdateUserPasswordRequest{User: user, Password: passwd}
72 resp, err := s.api.UpdateUserPassword(s.ctx, req)
73 if err != nil {
74 return 0, errors.Trace(err)
75 }
76
77 log.Debugf("updateUserPassword finished, id:%d, err:%v", resp.ID, resp.Header.Error())
78 return resp.ID, errors.Trace(resp.Header.Error())
79}
80
81func (s *store) getUserInfo(gtype int32, userName string, userID int64) (int64, string, string, []byte, error) {
82 log.Debugf("get userInfo type:%v userName:%v userID:%v", gtype, userName, userID)

Callers 1

UpdateUserPasswordMethod · 0.45

Calls 2

UpdateUserPasswordMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected