mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #3592 from Xenograph/master
FIX: Substrings of reserved usernames no longer treated as reserved
This commit is contained in:
commit
0330e17ffa
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue