[PR #4258] [CLOSED] fix(accounts): refresh updatedAt on /set-password and /change-password #13526

Closed
opened 2026-04-13 08:59:11 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4258
Author: @MaxenceAdnot
Created: 8/27/2025
Status: Closed

Base: canaryHead: fix/fix-updatedAt-on-accounts


📝 Commits (1)

  • 9dc8fd0 fix(accounts): refresh updatedAt on /set-password and /change-password

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/api/routes/update-user.ts (+2 -0)

📄 Description

Summary by cubic

Refresh account updatedAt when users change or set a password, keeping account metadata accurate after credential updates. The /change-password and /set-password endpoints now write updatedAt alongside the new password hash.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4258 **Author:** [@MaxenceAdnot](https://github.com/MaxenceAdnot) **Created:** 8/27/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/fix-updatedAt-on-accounts` --- ### 📝 Commits (1) - [`9dc8fd0`](https://github.com/better-auth/better-auth/commit/9dc8fd096df01099cb0f10f3f7effcb8bd672864) fix(accounts): refresh updatedAt on /set-password and /change-password ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/update-user.ts` (+2 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Refresh account updatedAt when users change or set a password, keeping account metadata accurate after credential updates. The /change-password and /set-password endpoints now write updatedAt alongside the new password hash. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 08:59:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#13526