Add support for multiple emails per user #2345

Closed
opened 2025-11-02 04:33:27 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @RyanSquared on GitHub (Sep 19, 2018).

  • Gitea version (or commit ref):

  • Git version: N/A

  • Operating system: Linux [hostname] 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux running under Docker: gitea/gitea:latest updated as of this issue creation

  • Database (use [x]):

    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:

    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

GitHub allows for users to add multiple emails, listing one as the "primary" email. This is useful as it allows users to have various GPG keys with different emails associated with an account without having verification issues.

This feature is essential for Gitea's verification, as right now my commits are showing as unverified, because the email used to sign them is different than the one associated with my account.

Originally created by @RyanSquared on GitHub (Sep 19, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: N/A - Operating system: Linux [hostname] 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux running under Docker: `gitea/gitea:latest` updated as of this issue creation - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant - Log gist: ## Description GitHub allows for users to add multiple emails, listing one as the "primary" email. This is useful as it allows users to have various GPG keys with different emails associated with an account without having verification issues. This feature is essential for Gitea's verification, as right now my commits are showing as unverified, because the email used to sign them is different than the one associated with my account.
GiteaMirror added the type/question label 2025-11-02 04:33:27 -06:00
Author
Owner

@lafriks commented on GitHub (Sep 19, 2018):

Gitea already does support multiple emails, see user settings

@lafriks commented on GitHub (Sep 19, 2018): Gitea already does support multiple emails, see user settings
Author
Owner

@RyanSquared commented on GitHub (Sep 19, 2018):

Sorry about that. I saw on the landing page for the settings that there was one "Email Address". Why are there two UIs for the same thing?

@RyanSquared commented on GitHub (Sep 19, 2018): Sorry about that. I saw on the landing page for the settings that there was one "Email Address". Why are there two UIs for the same thing?
Author
Owner

@lafriks commented on GitHub (Sep 19, 2018):

It just historicaly how it was easier to add. GitHub also has it this way

@lafriks commented on GitHub (Sep 19, 2018): It just historicaly how it was easier to add. GitHub also has it this way
Author
Owner

@RyanSquared commented on GitHub (Sep 19, 2018):

GitHub has a dedicated section for managing emails. Not sure whether that's new or not with the redesign. GitHub also mentions that it's the "primary" email, which indicates you can have at least a secondary.

Onto another issue, it appears as though only one email is being parsed from my key. GitHub says the key is: "Email addresses: ryan@hashbang.sh vandor2012@gmail.com" I know that I ran gpg --export --armor ryan@hashbang.sh, but after putting it into Gitea, it was listed as vandor2012@gmail.com.

@RyanSquared commented on GitHub (Sep 19, 2018): GitHub has a dedicated section for managing emails. Not sure whether that's new or not with the redesign. GitHub also mentions that it's the "primary" email, which indicates you can have at least a secondary. Onto another issue, it appears as though only one email is being parsed from my key. GitHub says the key is: "Email addresses: ryan@hashbang.sh vandor2012@gmail.com" I know that I ran `gpg --export --armor ryan@hashbang.sh`, but after putting it into Gitea, it was listed as `vandor2012@gmail.com`.
Author
Owner

@RyanSquared commented on GitHub (Sep 19, 2018):

To clarify on the issue: Gitea expects the key to be made from vandor2012@gmail.com. However, the signature is parsed as coming from ryan@hashbang.sh

@RyanSquared commented on GitHub (Sep 19, 2018): To clarify on the issue: Gitea expects the key to be made from `vandor2012@gmail.com`. However, the signature is parsed as coming from `ryan@hashbang.sh`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2345