Changes

This PR allows OAuth-based user registration independently of general self-registration and enables enforcing OAuth-only authentication for users created via OAuth providers.

Specifically:

  • OAuth users can be created even when general self-registration is disabled.
  • OAuth registration is controlled via a new instance-level setting.
  • Users created through OAuth can be restricted from using password-based login and password reset.
  • Existing users are not affected.

Issue


Category

  • New feature

Screenshots or Video (if applicable)

1. Registration page before settings change (registration enabled)
Registration page before settings change

2. OAuth provider configuration (GitHub enabled with placeholder credentials)
OAuth provider configuration

3. General registration disabled in Advanced settings
General registration disabled

4. Registration page after settings change (OAuth login still available)
Registration page after settings change


AI Usage

  • AI is used in the process of creating this PR

Steps to Test

  • Step 1 – Go to Settings → Advanced and disable Registration Allowed
  • Step 2 – Go to Settings → OAuth and enable GitHub OAuth with placeholder credentials
  • Step 3 – Save the settings
  • Step 4 – Open the login page and verify password-based registration is disabled
  • Step 5 – Verify the Login with GitHub option is still visible and available
  • Step 6 – Log in as an existing user and confirm password login still works

Contributor Agreement

[!IMPORTANT]

  • I have read and understood the contributor guidelines. If I have failed to follow any guideline, I understand that this PR may be closed without review.
  • I have tested the changes thoroughly and am confident that they will work as expected without issues when the maintainer tests them.

Claim

Total prize pool $50
Total paid $0
Status Pending
Submitted January 26, 2026
Last updated February 01, 2026

Contributors

AK

Akinniranye Samuel Tomiwa

@samuel-asleep

100%

Sponsors

KE

Kewyn Ferreira

@kewynf

$50