[PR #189] [MERGED] feat(auth): update password requirements and add forgot/reset passwor… #381

Closed
opened 2026-03-03 11:29:39 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dflow-sh/dflow/pull/189
Author: @charanm927
Created: 5/27/2025
Status: Merged
Merged: 5/27/2025
Merged by: @charanm927

Base: mainHead: forgot-password


📝 Commits (1)

  • 8943ba2 feat(auth): update password requirements and add forgot/reset password functionality

📊 Changes

16 files changed (+847 additions, -5 deletions)

View changed files

📝 env.ts (+6 -0)
📝 package.json (+1 -0)
📝 pnpm-lock.yaml (+361 -0)
📝 src/actions/auth/validator.ts (+4 -1)
src/app/(frontend)/(auth)/forgot-password/page.tsx (+7 -0)
src/app/(frontend)/(auth)/reset-password/page.tsx (+14 -0)
📝 src/app/(frontend)/(auth)/sign-in/page.tsx (+8 -1)
src/components/forgot-password/ForgotPasswordForm.tsx (+112 -0)
src/components/reset-password/ResetPasswordForm.tsx (+129 -0)
📝 src/components/sign-in/SignInForm.tsx (+13 -3)
src/emails/common/Divider.tsx (+13 -0)
src/emails/common/EmailHeader.tsx (+41 -0)
src/emails/common/EmailLayout.tsx (+42 -0)
src/emails/reset-password/index.tsx (+74 -0)
📝 src/payload.config.ts (+10 -0)
📝 src/payload/collections/Users/index.ts (+12 -0)

📄 Description

…d functionality

  • Changed minimum password length from 8 to 6 characters in reset password schema.
  • Added confirm password field to reset password schema.
  • Implemented ForgotPasswordForm component for sending reset password links.
  • Created ResetPasswordForm component for resetting passwords using a token.
  • Updated SignInForm to conditionally display a "Forgot Password?" link based on environment variables.
  • Added email components for sending reset password emails, including EmailHeader, EmailLayout, and Divider.
  • Integrated resend adapter for email functionality in Payload CMS configuration.
  • Added forgot password email generation in Users collection configuration.

🔄 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/dflow-sh/dflow/pull/189 **Author:** [@charanm927](https://github.com/charanm927) **Created:** 5/27/2025 **Status:** ✅ Merged **Merged:** 5/27/2025 **Merged by:** [@charanm927](https://github.com/charanm927) **Base:** `main` ← **Head:** `forgot-password` --- ### 📝 Commits (1) - [`8943ba2`](https://github.com/dflow-sh/dflow/commit/8943ba23150c18c9be3381c150cca00fc1e0ceb9) feat(auth): update password requirements and add forgot/reset password functionality ### 📊 Changes **16 files changed** (+847 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `env.ts` (+6 -0) 📝 `package.json` (+1 -0) 📝 `pnpm-lock.yaml` (+361 -0) 📝 `src/actions/auth/validator.ts` (+4 -1) ➕ `src/app/(frontend)/(auth)/forgot-password/page.tsx` (+7 -0) ➕ `src/app/(frontend)/(auth)/reset-password/page.tsx` (+14 -0) 📝 `src/app/(frontend)/(auth)/sign-in/page.tsx` (+8 -1) ➕ `src/components/forgot-password/ForgotPasswordForm.tsx` (+112 -0) ➕ `src/components/reset-password/ResetPasswordForm.tsx` (+129 -0) 📝 `src/components/sign-in/SignInForm.tsx` (+13 -3) ➕ `src/emails/common/Divider.tsx` (+13 -0) ➕ `src/emails/common/EmailHeader.tsx` (+41 -0) ➕ `src/emails/common/EmailLayout.tsx` (+42 -0) ➕ `src/emails/reset-password/index.tsx` (+74 -0) 📝 `src/payload.config.ts` (+10 -0) 📝 `src/payload/collections/Users/index.ts` (+12 -0) </details> ### 📄 Description …d functionality - Changed minimum password length from 8 to 6 characters in reset password schema. - Added confirm password field to reset password schema. - Implemented ForgotPasswordForm component for sending reset password links. - Created ResetPasswordForm component for resetting passwords using a token. - Updated SignInForm to conditionally display a "Forgot Password?" link based on environment variables. - Added email components for sending reset password emails, including EmailHeader, EmailLayout, and Divider. - Integrated resend adapter for email functionality in Payload CMS configuration. - Added forgot password email generation in Users collection configuration. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 11:29:39 +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/dflow#381
No description provided.