Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to register the lower-case version of a conflicting MXID #15931

Open
4 tasks
matrixbot opened this issue Dec 21, 2023 · 0 comments
Open
4 tasks

Add a way to register the lower-case version of a conflicting MXID #15931

matrixbot opened this issue Dec 21, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 21, 2023

This issue has been migrated from #15931.


This isn't meant to merge to main-line and is just a one-off fix so I can register a specific user.


Add a way to register the lower-case version of a conflicting MXID.

Basically, if you have @Foo:matrix.org already registered, this will allow you register @foo:matrix.org

poetry run register_new_matrix_user --inhibit_user_in_use_error 1 -c homeserver.yaml

Fix matrix-org/synapse#11426


inhibit_user_in_use_error is already a homeserver configuration option but only applies to the username availability endpoint. This change makes it possible to configure the option when using the admin API to register a user.

Testing strategy

  1. Add a conflicting user psql --user postgres synapse
    INSERT INTO users
        (name, password_hash, creation_ts, is_guest, admin, shadow_banned, approved)
    VALUES
        ('@test-COLLISION-user:my.synapse.linux.server', 'fake-password-hash', 1689216488, 0, 0, False, True);
  2. poetry run register_new_matrix_user --inhibit_user_in_use_error 1 -c homeserver.yaml
    • Enter test-collision-user and whatever data for the rest
  3. Notice the Success! message

Pull Request Checklist

@matrixbot matrixbot changed the title Dummy issue Add a way to register the lower-case version of a conflicting MXID Dec 22, 2023
@matrixbot matrixbot reopened this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant