UpdatePassword updates a user's password hash.
(ctx context.Context, userID, hash string)
| 253 | |
| 254 | // UpdatePassword updates a user's password hash. |
| 255 | func (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. |
| 261 | func (s *UsersStore) Delete(ctx context.Context, id string) error { |
nothing calls this directly
no test coverage detected