mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: in result.rb don't use email for username suggestions until enabled in settings (#15586)
This commit is contained in:
committed by
GitHub
parent
357186ab7e
commit
404f882e5c
@@ -196,7 +196,9 @@ class Auth::Result
|
||||
end
|
||||
|
||||
def username_suggester_attributes
|
||||
[username, name, email]
|
||||
attributes = [username, name]
|
||||
attributes << email if SiteSetting.use_email_for_username_and_name_suggestions
|
||||
attributes
|
||||
end
|
||||
|
||||
def authenticator
|
||||
|
||||
Reference in New Issue
Block a user