mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
FIX: wasn't able to use the same username when taking over a staged account
This commit is contained in:
@@ -12,7 +12,7 @@ class UsernameCheckerService
|
||||
end
|
||||
|
||||
def check_username_availability(username, email)
|
||||
if User.username_available?(username)
|
||||
if User.username_available?(username, email)
|
||||
{ available: true, is_developer: is_developer?(email) }
|
||||
else
|
||||
{ available: false, suggestion: UserNameSuggester.suggest(username) }
|
||||
|
||||
Reference in New Issue
Block a user