mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:52:43 +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")
|
return fail_with("login.password_too_long")
|
||||||
end
|
end
|
||||||
|
|
||||||
if SiteSetting.reserved_usernames.include? params[:username].downcase
|
if SiteSetting.reserved_usernames.split("|").include? params[:username].downcase
|
||||||
return fail_with("login.reserved_username")
|
return fail_with("login.reserved_username")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user