0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 04:02:30 +08:00
discourse/lib/auth
Régis Hanol ab298822e2
FIX: Leave username blank during OAuth signup when no valid suggestion exists (#36830)
When `use_email_for_username_and_name_suggestions` is disabled, the
username suggester was falling back to generic usernames like "user1",
"user2", etc. These suggestions are rarely helpful as they create
indistinct usernames that users often accept without modification,
resulting in forums populated with "user763", "user764", etc.

This change adds an `allow_generic_fallback` option to
`UserNameSuggester.suggest()`. When set to false, it returns nil instead
of falling back to generic "userN" usernames. The OAuth authentication
flow now uses this option, leaving the username field blank so users
must choose their own meaningful username.

Ref - https://meta.discourse.org/t/391542
2026-01-08 11:02:35 +01:00
..
auth_provider.rb DEV: Add capability to pass an icon setting into auth provider registration (#34584) 2025-08-28 09:14:36 -05:00
authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
current_user_provider.rb DEV: Allow impersonation without session swapping (#34213) 2025-08-21 14:18:15 +08:00
default_current_user_provider.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
discord_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
discourse_id_authenticator.rb FEATURE: Discourse ID setting page (#36316) 2025-12-11 16:04:09 +01:00
facebook_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
github_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
google_oauth2_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
linkedin_oidc_authenticator.rb FEATURE: add link to "associated accounts" providers (#33275) 2025-06-20 10:22:29 +02:00
managed_authenticator.rb FEATURE: managed auth can override avatars (#34123) 2025-09-02 12:49:43 -04:00
oauth_faraday_formatter.rb DEV: Include a basic oauth faraday formatter in core for usage in managed authenticators (#28758) 2024-09-05 22:29:29 +08:00
result.rb FIX: Leave username blank during OAuth signup when no valid suggestion exists (#36830) 2026-01-08 11:02:35 +01:00
twitter_authenticator.rb FIX: Twitter login problem check not reporting accurately (#35593) 2025-10-24 09:42:58 -04:00