Merge pull request #3585 from riking/patch-3

FEATURE: Reserved usernames
This commit is contained in:
Robin Ward
2015-07-03 10:02:24 -04:00
4 changed files with 17 additions and 0 deletions

View File

@@ -231,6 +231,10 @@ class UsersController < ApplicationController
return fail_with("login.password_too_long")
end
if SiteSetting.reserved_usernames.include? params[:username].downcase
return fail_with("login.reserved_username")
end
user = User.new(user_params)
# Handle custom fields