500: UserSignIn: Email address does not exist #8756

Closed
opened 2025-11-02 08:16:34 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @adamu on GitHub (Mar 28, 2022).

Description

When attempting to log-in with an email address that does not exist, the following error is logged and HTTP 500 is returned:

gitea | 2022/03/28 00:00:04 Started POST /user/login for [ip]:63208
gitea | 2022/03/28 00:00:04 ...ers/web/auth/auth.go:218:SignInPost() [E] UserSignIn: Email address does not exist [email: asdas@asdad.com]
gitea | 2022/03/28 00:00:04 Completed POST /user/login 500 Internal Server Error in 9.634472ms

The 500 error does not happen if using a username instead of an email address.

Gitea Version

1.16.4

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Email (invalid@invalid):
image

Username: (invalid):
image

Git Version

No response

Operating System

ubuntu

How are you running Gitea?

Docker compose: gitea/gitea:1.16.4

Database

PostgreSQL

Originally created by @adamu on GitHub (Mar 28, 2022). ### Description When attempting to log-in with an email address that does not exist, the following error is logged and HTTP 500 is returned: > gitea | 2022/03/28 00:00:04 Started POST /user/login for [ip]:63208 > gitea | 2022/03/28 00:00:04 ...ers/web/auth/auth.go:218:SignInPost() [E] UserSignIn: Email address does not exist [email: asdas@asdad.com] > gitea | 2022/03/28 00:00:04 Completed POST /user/login 500 Internal Server Error in 9.634472ms The 500 error does not happen if using a username instead of an email address. ### Gitea Version 1.16.4 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots Email (invalid@invalid): <img width="501" alt="image" src="https://user-images.githubusercontent.com/498229/160307050-8dcfce7f-4d6b-4632-bb5b-45e77788f04d.png"> Username: (invalid): <img width="856" alt="image" src="https://user-images.githubusercontent.com/498229/160307025-e1c17ebe-1091-4b40-a7a6-9dfa8f1dc5de.png"> ### Git Version _No response_ ### Operating System ubuntu ### How are you running Gitea? Docker compose: gitea/gitea:1.16.4 ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 08:16:34 -06:00
Author
Owner

@adamu commented on GitHub (Mar 28, 2022):

Ah sorry, this is a duplicate of #19087

@adamu commented on GitHub (Mar 28, 2022): Ah sorry, this is a duplicate of #19087
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8756