Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Respect registration config on OAuth signup flow #303
This alters the current OAuth flow to respect an instance's user registration config. It includes:
This PR includes style and database changes. Run the following commands to update your development environment:
This adds any OAuth login buttons to the invite signup page, stores the invite code for the flow duration, and associates the new user with it once successfully registered. It enables invite-only instances with OAuth-based registration.
Now, on OAuth signup form, we create a unique username with random appended string only if there's a conflict. Previously, this was always happening during the Slack OAuth flow. This has the benefit of preventing username collisions for all OAuth providers.
Added a few light improvements to the OAuth signup flow here, too: