summaryrefslogtreecommitdiff
path: root/internal/processing/user/changepassword.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/user/changepassword.go')
-rw-r--r--internal/processing/user/changepassword.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/user/changepassword.go b/internal/processing/user/changepassword.go
index ddfec6898..856e92bdc 100644
--- a/internal/processing/user/changepassword.go
+++ b/internal/processing/user/changepassword.go
@@ -45,7 +45,7 @@ func (p *processor) ChangePassword(ctx context.Context, user *gtsmodel.User, old
user.EncryptedPassword = string(newPasswordHash)
user.UpdatedAt = time.Now()
- if err := p.db.UpdateByPrimaryKey(ctx, user, "encrypted_password", "updated_at"); err != nil {
+ if err := p.db.UpdateByID(ctx, user, user.ID, "encrypted_password", "updated_at"); err != nil {
return gtserror.NewErrorInternalError(err, "database error")
}