[PR #1428] [MERGED] feat: allow disabling email and password signup #3804

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1428
Author: @jslno
Created: 2/13/2025
Status: Merged
Merged: 2/28/2025
Merged by: @Bekacru

Base: mainHead: feat/disable-email-password-signup


📝 Commits (3)

📊 Changes

3 files changed (+15 additions, -1 deletions)

View changed files

📝 docs/content/docs/authentication/email-password.mdx (+5 -0)
📝 packages/better-auth/src/api/routes/sign-up.ts (+4 -1)
📝 packages/better-auth/src/types/options.ts (+6 -0)

📄 Description

This PR brings a new option to the email and password authentication. disableSignUp allows disabling the /sign-up/email endpoint.

Docs

image

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


🔄 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/1428 **Author:** [@jslno](https://github.com/jslno) **Created:** 2/13/2025 **Status:** ✅ Merged **Merged:** 2/28/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/disable-email-password-signup` --- ### 📝 Commits (3) - [`d68c79f`](https://github.com/better-auth/better-auth/commit/d68c79fc5880ff676747743aa5fd81ed27c407ba) feat: allow disabling email and password signup - [`5397c7e`](https://github.com/better-auth/better-auth/commit/5397c7e60e782322d96b2863c34a5c73427b51d5) docs: include disableSignUp in email password authentication - [`e8861d7`](https://github.com/better-auth/better-auth/commit/e8861d738378592948cbba0f82443a0ec76d7528) closes https://github.com/better-auth/better-auth/issues/1142 ### 📊 Changes **3 files changed** (+15 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/authentication/email-password.mdx` (+5 -0) 📝 `packages/better-auth/src/api/routes/sign-up.ts` (+4 -1) 📝 `packages/better-auth/src/types/options.ts` (+6 -0) </details> ### 📄 Description This PR brings a new option to the email and password authentication. `disableSignUp` allows disabling the `/sign-up/email` endpoint. ## Docs ![image](https://github.com/user-attachments/assets/ec330c1a-2cb0-4928-90cb-306274e1833b) closes https://github.com/better-auth/better-auth/issues/1142 --- <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:13:51 -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#3804