[PR #556] [MERGED] Check primary email address fields on CreateUser #15452

Closed
opened 2025-11-02 11:46:50 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/556
Author: @ghost
Created: 1/2/2017
Status: Merged
Merged: 1/5/2017
Merged by: @lunny

Base: masterHead: patch-1


📝 Commits (3)

  • 28aac19 Check primary email address fields on CreateUser
  • 4f646ad Update user.go
  • 39518d3 Lower the email first. Then check

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

📝 models/user.go (+9 -0)

📄 Description

As this check wasn't available, uid=1 (and possibly guests too, if registration is open) is able to register new users with existing email addresses. This leads to numerous 500 errors.


🔄 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/go-gitea/gitea/pull/556 **Author:** [@ghost](https://github.com/ghost) **Created:** 1/2/2017 **Status:** ✅ Merged **Merged:** 1/5/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (3) - [`28aac19`](https://github.com/go-gitea/gitea/commit/28aac19db942c05b401cd425fb8259ff6d40d218) Check primary email address fields on CreateUser - [`4f646ad`](https://github.com/go-gitea/gitea/commit/4f646ad48da0ec07e204adf51ef9488dab7a598a) Update user.go - [`39518d3`](https://github.com/go-gitea/gitea/commit/39518d30f9244f4e680023aabca96f591fd140bf) Lower the email first. Then check ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `models/user.go` (+9 -0) </details> ### 📄 Description As this check wasn't available, uid=1 (and possibly guests too, if registration is open) is able to register new users with existing email addresses. This leads to numerous 500 errors. --- <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 2025-11-02 11:46:51 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15452