Add 'login required' site setting

This commit is contained in:
Chris Hunt 2013-06-04 15:30:16 -07:00
parent 93aa0a9f39
commit 85ceb5efa7
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -501,6 +501,8 @@ en:
# TODO: perhaps we need a way of protecting these settings for hosted solution, global settings ... # TODO: perhaps we need a way of protecting these settings for hosted solution, global settings ...
login_required: "Require authentication to read posts"
enable_local_logins: "Enable local authentication" enable_local_logins: "Enable local authentication"
enable_local_account_create: "Enable local account creation" enable_local_account_create: "Enable local account creation"
enable_google_logins: "Enable Google authentication" enable_google_logins: "Enable Google authentication"