Fixed bug that caused substrings of reserved usernames to be treated as reserved.
This commit is contained in:
parent
00e1659a57
commit
5e615ef26e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue