Skip to content

error 500 on login - invalid email address #19897

Closed
@fnetX

Description

@fnetX

Description

A user on Codeberg reported they cannot login any more, because they only see an error 500 screen. We were able to reproduce: Users with an email address that is considered invalid by Gitea after it was registered have trouble signin in. It was _@<hostname> in this case.

2022/06/05 21:16:13 ...ers/web/auth/auth.go:354:handleSignInFull() [E] UpdateUserCols: e-mail invalid [email: _@<hostname>]

It seems to work after reloading the page, but is still worrisome. Please confirm that users who do have valid email addresses that aren't considered valid by Gitea any more are not limited in their actions (e.g. receiving notifications, resetting password, etc).

I can only confirm that the mail address is still rejected by recent Gitea versions.

Further, editing the user lead to unhelpful error messages in the admin panel and lead to the "Create User Account" instead of the "edit" view, but I don't know how to provide more information on that weirdness, but I hope this will be fixed, too.

Gitea Version

1.16.8

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Codeberg, built from slightly modified fork,.

Database

MySQL

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