Fixes #8042
Right now, if you disable registration, OAuth users can’t register either. This is a problem if you want to manage access through something like Authentik — you’d have to leave general registration wide open just to let OAuth users in.
This adds a simple toggle (“OAuth Registration Allowed”) under Settings > Advanced. When enabled, new users can still create accounts by logging in through an OAuth provider, even when the normal registration form is disabled. Existing users can always log in regardless.
Changes:
is_oauth_registration_enabled column on instance_settings (default: false, fully backwards compatible)OauthController callback to allow registration when either general reg or OAuth reg is enabled/claim #8042
285729101
@285729101
Kewyn Ferreira
@kewynf