Skip to content

Username check for reserved username is broken #426

@Brutus5000

Description

@Brutus5000

As it turns out the check wether a username is reserved after renaming is broken.

@Query(value = "SELECT user_id FROM name_history WHERE previous_name = :name AND now() > date_add(change_time, INTERVAL :months MONTH) ORDER BY change_time DESC LIMIT 1", nativeQuery = true)

now() should be smaller than change date + x month if a username is still reserved

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