Register a new user with Oauth2 doesn't link account #11917

Closed
opened 2025-11-02 09:51:48 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @lng2020 on GitHub (Oct 27, 2023).

Description

Reproduce procedure:

  1. create an account with a username and email in the Oauth2 provider. The username and email should not exist in the Gitea instance.
  2. On the register page, click sign in with your oauth2 provider. Then it will redirect to a page to confirm the creation of an account in Gitea, which is expected since the username and the email are not existed in Gitea.
  3. Click confirm. Now a new Gitea account is created but in settings/security, you can't see the Account Linking information, which is unexpected.

Gitea Version

latest codebase

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

built with source code

Database

None

Originally created by @lng2020 on GitHub (Oct 27, 2023). ### Description Reproduce procedure: 1. create an account with a username and email in the Oauth2 provider. The username and email should not exist in the Gitea instance. 2. On the register page, click `sign in` with your oauth2 provider. Then it will redirect to a page to confirm the creation of an account in Gitea, which is expected since the username and the email are not existed in Gitea. 3. Click confirm. Now a new Gitea account is created but in `settings/security`, you can't see the `Account Linking` information, which is unexpected. ### Gitea Version latest codebase ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? built with source code ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:51:48 -06:00
Author
Owner

@lng2020 commented on GitHub (Oct 27, 2023):

duplicate with #7056

@lng2020 commented on GitHub (Oct 27, 2023): duplicate with #7056
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11917