[PR #1080] [MERGED] fix(emailOtp): do not create verification when disableSignUp #3619

Closed
opened 2026-03-13 11:01:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1080
Author: @canstand
Created: 12/31/2024
Status: Merged
Merged: 12/31/2024
Merged by: @Bekacru

Base: mainHead: fix-emailotp-send


📝 Commits (1)

  • 2b0debf fix(emailOtp): do not create verification when disableSignUp and user not registered

📊 Changes

2 files changed (+32 additions, -2 deletions)

View changed files

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

📄 Description

when disableSignUp and user not found, should not create and send verification OTP.


🔄 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/1080 **Author:** [@canstand](https://github.com/canstand) **Created:** 12/31/2024 **Status:** ✅ Merged **Merged:** 12/31/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix-emailotp-send` --- ### 📝 Commits (1) - [`2b0debf`](https://github.com/better-auth/better-auth/commit/2b0debf789d3c945d0934aaf61be31f92cb84093) fix(emailOtp): do not create verification when disableSignUp and user not registered ### 📊 Changes **2 files changed** (+32 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/email-otp/email-otp.test.ts` (+31 -1) 📝 `packages/better-auth/src/plugins/email-otp/index.ts` (+1 -1) </details> ### 📄 Description when disableSignUp and user not found, should not create and send verification OTP. --- <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-03-13 11:01:19 -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#3619