Skip to content

Email uniqueness check uses LIKE instead of = #250

@raya-ac

Description

@raya-ac

The email duplicate check queries WHERE email LIKE ?. LIKE treats % and _ as wildcards, so an email containing those characters matches more rows than intended. A user registering with a%@example.com would falsely collide with admin@example.com.

app/handlers/sessions/register/register.go line 116 and app/handlers/profiles/settings/password.go line 78

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions