Add 'invite only' site setting

This commit is contained in:
Chris Hunt 2013-06-05 11:06:05 -07:00
parent 67ba33dee5
commit 24da1ab07e
2 changed files with 4 additions and 0 deletions

View file

@ -134,6 +134,8 @@ class SiteSetting < ActiveRecord::Base
setting(:send_welcome_message, true)
client_setting(:invite_only, false)
client_setting(:login_required, false)
client_setting(:enable_local_logins, true)

View file

@ -507,6 +507,8 @@ en:
# TODO: perhaps we need a way of protecting these settings for hosted solution, global settings ...
invite_only: "Public registration is disabled, new users must be invited"
login_required: "Require authentication to read posts"
enable_local_logins: "Enable local authentication"