MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / UpdatePassword

Method UpdatePassword

server-source-code/internal/store/users.go:255–258  ·  view source on GitHub ↗

UpdatePassword updates a user's password hash.

(ctx context.Context, userID, hash string)

Source from the content-addressed store, hash-verified

253
254// UpdatePassword updates a user's password hash.
255func (s *UsersStore) UpdatePassword(ctx context.Context, userID, hash string) error {
256 d := s.db.DB(ctx)
257 return d.Queries.UpdatePassword(ctx, db.UpdatePasswordParams{PasswordHash: &hash, ID: userID})
258}
259
260// Delete deletes a user.
261func (s *UsersStore) Delete(ctx context.Context, id string) error {

Callers

nothing calls this directly

Calls 2

DBMethod · 0.65
UpdatePasswordMethod · 0.65

Tested by

no test coverage detected