mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: when suggesting usernames skip input that consist entirely of disallowed characters (#15368)
This commit is contained in:

committed by
GitHub

parent
952bebc5a1
commit
c202252190
@ -189,7 +189,7 @@ class Auth::Result
|
||||
end
|
||||
|
||||
def username_suggester_attributes
|
||||
username || name || email
|
||||
[username, name, email]
|
||||
end
|
||||
|
||||
def authenticator
|
||||
@ -203,6 +203,6 @@ class Auth::Result
|
||||
end
|
||||
end
|
||||
|
||||
UserNameSuggester.suggest(username_suggester_attributes)
|
||||
UserNameSuggester.suggest(*username_suggester_attributes)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user