[PR #3223] [MERGED] email-otp: throw USER_NOT_FOUND when sign-up is disabled #21609

Closed
opened 2026-04-15 20:29:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3223
Author: @tinkerer-shubh
Created: 6/30/2025
Status: Merged
Merged: 7/1/2025
Merged by: @Bekacru

Base: mainHead: fix/email-otp-disable-signup-error


📝 Commits (2)

  • 6637695 email-otp: throw USER_NOT_FOUND when sign-up is disabled
  • 4536738 formatting

📊 Changes

2 files changed (+22 additions, -28 deletions)

View changed files

📝 packages/better-auth/src/plugins/email-otp/email-otp.test.ts (+13 -27)
📝 packages/better-auth/src/plugins/email-otp/index.ts (+9 -1)

📄 Description

closes: https://github.com/better-auth/better-auth/issues/3202


🔄 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/3223 **Author:** [@tinkerer-shubh](https://github.com/tinkerer-shubh) **Created:** 6/30/2025 **Status:** ✅ Merged **Merged:** 7/1/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/email-otp-disable-signup-error` --- ### 📝 Commits (2) - [`6637695`](https://github.com/better-auth/better-auth/commit/66376950a574a5ad20c2ad0f41e820eeca586582) email-otp: throw USER_NOT_FOUND when sign-up is disabled - [`4536738`](https://github.com/better-auth/better-auth/commit/453673863e642bc0aeeb3bc314582986a4a2b799) formatting ### 📊 Changes **2 files changed** (+22 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/email-otp/email-otp.test.ts` (+13 -27) 📝 `packages/better-auth/src/plugins/email-otp/index.ts` (+9 -1) </details> ### 📄 Description closes: https://github.com/better-auth/better-auth/issues/3202 --- <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-15 20:29:26 -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#21609