mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Fixed bug that caused substrings of reserved usernames to be treated as reserved.
This commit is contained in:
@ -231,7 +231,7 @@ class UsersController < ApplicationController
|
||||
return fail_with("login.password_too_long")
|
||||
end
|
||||
|
||||
if SiteSetting.reserved_usernames.include? params[:username].downcase
|
||||
if SiteSetting.reserved_usernames.split("|").include? params[:username].downcase
|
||||
return fail_with("login.reserved_username")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user