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

Gitealize usernames #3

Closed
wants to merge 4 commits into from

Commits on Sep 7, 2023

  1. Gitealize nicknames from Blender ID

    Blender ID allows a wider range of characters in the nickname than Gitea
    allows. Before using a Blender ID nickname as a Gitea username, it needs
    to be massaged into a valid form.
    
    This was already done in the Blender ID-to-Gitea webhook for username
    changes, and this PR introduces it in Gitea itself for the registration
    flow.
    
    The implementation follows what the webhook code[1] does, except it's
    simpler because it can use built-in Gitea functionality.
    
    This fixes https://projects.blender.org/blender/blender/issues/111937
    
    [1]: https://projects.blender.org/infrastructure/gitea-blenderid-webhook/src/branch/main/gitea_blenderid_webhook/gitea_users.py
    drsybren committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    417887d View commit details
    Browse the repository at this point in the history
  2. Run make tidy

    drsybren committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    52c77db View commit details
    Browse the repository at this point in the history
  3. Run make fmt

    drsybren committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    04e98a9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6cdadd4 View commit details
    Browse the repository at this point in the history