Skip to content

Failed authentication attempt is logged with text 'user does not exist' even when the user exists #24498

Closed
@MarekChr

Description

@MarekChr

Description

Log entry:
...ers/web/auth/auth.go:206:SignInPost() [I] [645256b1] Failed authentication attempt for user from ip: user does not exist [uid: 2, name: user, keyid: 0]

Description
I tried to fail authentication by using wrong password and I looked at the log file. There is failed authentication attempt information log with additional text: 'user does not exist', however user exists and I can login when provided good password.

Expected Fix
Log authentication attempt fail log without text 'user does not exist' when user exists

Gitea Version

1.19.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.30.2

Operating System

Debian

How are you running Gitea?

Running binary gitea behind nginx proxy

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions