[PR #108] [CLOSED] only set session cookie if sendEmailVerificationOnSignUp is falsy #28707

Closed
opened 2026-04-17 20:10:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/108
Author: @ghost
Created: 10/7/2024
Status: Closed

Base: mainHead: patch-1


📝 Commits (1)

  • 9448d7c only set session cookie if sendEmailVerificationOnSignUp is falsy

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/api/routes/sign-up.ts (+7 -1)

📄 Description

Allowing unverified email addresses to login can lead to various vulnerability issues/risks. This implements mandatory email verification before they can sign in when sendEmailVerificationOnSignUp is true.


🔄 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/108 **Author:** [@ghost](https://github.com/ghost) **Created:** 10/7/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`9448d7c`](https://github.com/better-auth/better-auth/commit/9448d7cbf504206716c93ea31769b81fa18301be) only set session cookie if `sendEmailVerificationOnSignUp` is falsy ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/sign-up.ts` (+7 -1) </details> ### 📄 Description Allowing unverified email addresses to login can lead to various vulnerability issues/risks. This implements mandatory email verification before they can sign in when `sendEmailVerificationOnSignUp` is `true`. --- <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-17 20:10:46 -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#28707