[PR #385] [MERGED] feat: reset password #930

Closed
opened 2026-02-26 19:31:05 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/385
Author: @ephraimduncan
Created: 9/18/2023
Status: Merged
Merged: 9/20/2023
Merged by: @Mythie

Base: feat/refreshHead: feat/reset-password


📝 Commits (10+)

  • 47d55a5 feat: add password reset token to schema
  • f88e529 feat: add forgot passoword page
  • 7a489f2 feat: add reset password page
  • 0f92534 chore: remove unused error toast
  • b84f054 feat: create a password reset token
  • 7f641e3 feat: add forgot password template
  • b331e3c feat: add reset password email template
  • 1237944 chore: rename email templates export
  • 29bd4cb feat: send forgot password email
  • f561ef3 feat: add reset functionality

📊 Changes

28 files changed (+2364 additions, -162 deletions)

View changed files

apps/web/src/app/(unauthenticated)/check-email/page.tsx (+20 -0)
apps/web/src/app/(unauthenticated)/forgot-password/page.tsx (+25 -0)
apps/web/src/app/(unauthenticated)/layout.tsx (+27 -0)
apps/web/src/app/(unauthenticated)/reset-password/[token]/page.tsx (+37 -0)
apps/web/src/app/(unauthenticated)/reset-password/page.tsx (+20 -0)
📝 apps/web/src/app/(unauthenticated)/signin/page.tsx (+21 -31)
📝 apps/web/src/app/(unauthenticated)/signup/page.tsx (+14 -33)
apps/web/src/components/forms/forgot-password.tsx (+80 -0)
📝 apps/web/src/components/forms/password.tsx (+2 -2)
📝 apps/web/src/components/forms/profile.tsx (+3 -3)
apps/web/src/components/forms/reset-password.tsx (+135 -0)
📝 apps/web/src/components/forms/signin.tsx (+6 -7)
📝 package-lock.json (+1362 -60)
📝 packages/email/package.json (+3 -2)
📝 packages/email/template-components/template-footer.tsx (+13 -7)
packages/email/template-components/template-forgot-password.tsx (+54 -0)
packages/email/template-components/template-reset-password.tsx (+43 -0)
packages/email/templates/forgot-password.tsx (+74 -0)
packages/email/templates/reset-password.tsx (+102 -0)
packages/lib/server-only/auth/send-forgot-password.ts (+53 -0)

...and 8 more files

📄 Description

Summary by CodeRabbit

  • New Feature: Added comprehensive password reset functionality. Users can now request a password reset, receive an email with a reset link, and change their password through a secure form.
  • New Feature: Introduced new pages for the password reset process, including "Forgot Password", "Check Email", and "Reset Password" pages.
  • New Feature: Implemented email templates for password reset instructions and confirmation of password change.
  • Refactor: Updated form components to handle password reset requests and submissions.
  • Chore: Added a new table "PasswordResetToken" to the database schema to manage password reset tokens.
  • Chore: Updated server-side logic to handle password reset requests, validate tokens, and update passwords securely.

🔄 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/documenso/documenso/pull/385 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 9/18/2023 **Status:** ✅ Merged **Merged:** 9/20/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `feat/refresh` ← **Head:** `feat/reset-password` --- ### 📝 Commits (10+) - [`47d55a5`](https://github.com/documenso/documenso/commit/47d55a5eaba6675eb1472bf6950721a028150bc9) feat: add password reset token to schema - [`f88e529`](https://github.com/documenso/documenso/commit/f88e529111716be88bdce7d1211dc94bf58266ef) feat: add forgot passoword page - [`7a489f2`](https://github.com/documenso/documenso/commit/7a489f241aac986dec5a07943dda1f6c69ebc4c6) feat: add reset password page - [`0f92534`](https://github.com/documenso/documenso/commit/0f92534f00cbe696382f60775fb19280d70047ca) chore: remove unused error toast - [`b84f054`](https://github.com/documenso/documenso/commit/b84f0548d283fdeb42e9515d1340564e7db4bfd1) feat: create a password reset token - [`7f641e3`](https://github.com/documenso/documenso/commit/7f641e3e73598b12ee29fc7fba3c912ca3f0fa1d) feat: add forgot password template - [`b331e3c`](https://github.com/documenso/documenso/commit/b331e3c7808fc99cca01867aae08c830a59d29aa) feat: add reset password email template - [`1237944`](https://github.com/documenso/documenso/commit/1237944b715110e0ed30da9e259530eb37d53710) chore: rename email templates export - [`29bd4cb`](https://github.com/documenso/documenso/commit/29bd4cb9c3ca4b08afab36329231f281f137a076) feat: send forgot password email - [`f561ef3`](https://github.com/documenso/documenso/commit/f561ef3cda95251e076248b9360fb108dce2fa34) feat: add reset functionality ### 📊 Changes **28 files changed** (+2364 additions, -162 deletions) <details> <summary>View changed files</summary> ➕ `apps/web/src/app/(unauthenticated)/check-email/page.tsx` (+20 -0) ➕ `apps/web/src/app/(unauthenticated)/forgot-password/page.tsx` (+25 -0) ➕ `apps/web/src/app/(unauthenticated)/layout.tsx` (+27 -0) ➕ `apps/web/src/app/(unauthenticated)/reset-password/[token]/page.tsx` (+37 -0) ➕ `apps/web/src/app/(unauthenticated)/reset-password/page.tsx` (+20 -0) 📝 `apps/web/src/app/(unauthenticated)/signin/page.tsx` (+21 -31) 📝 `apps/web/src/app/(unauthenticated)/signup/page.tsx` (+14 -33) ➕ `apps/web/src/components/forms/forgot-password.tsx` (+80 -0) 📝 `apps/web/src/components/forms/password.tsx` (+2 -2) 📝 `apps/web/src/components/forms/profile.tsx` (+3 -3) ➕ `apps/web/src/components/forms/reset-password.tsx` (+135 -0) 📝 `apps/web/src/components/forms/signin.tsx` (+6 -7) 📝 `package-lock.json` (+1362 -60) 📝 `packages/email/package.json` (+3 -2) 📝 `packages/email/template-components/template-footer.tsx` (+13 -7) ➕ `packages/email/template-components/template-forgot-password.tsx` (+54 -0) ➕ `packages/email/template-components/template-reset-password.tsx` (+43 -0) ➕ `packages/email/templates/forgot-password.tsx` (+74 -0) ➕ `packages/email/templates/reset-password.tsx` (+102 -0) ➕ `packages/lib/server-only/auth/send-forgot-password.ts` (+53 -0) _...and 8 more files_ </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Summary by CodeRabbit - New Feature: Added comprehensive password reset functionality. Users can now request a password reset, receive an email with a reset link, and change their password through a secure form. - New Feature: Introduced new pages for the password reset process, including "Forgot Password", "Check Email", and "Reset Password" pages. - New Feature: Implemented email templates for password reset instructions and confirmation of password change. - Refactor: Updated form components to handle password reset requests and submissions. - Chore: Added a new table "PasswordResetToken" to the database schema to manage password reset tokens. - Chore: Updated server-side logic to handle password reset requests, validate tokens, and update passwords securely. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:31:05 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#930
No description provided.