forked from External/greenlight
Configurable default registration (#733)
* Configurable default registration * Remove unneeded if branch
This commit is contained in:
parent
853e712a43
commit
1256554ce6
|
@ -131,7 +131,13 @@ module Greenlight
|
||||||
config.primary_color_darken_default = "#316cbe"
|
config.primary_color_darken_default = "#316cbe"
|
||||||
|
|
||||||
# Default registration method if the user does not specify one
|
# Default registration method if the user does not specify one
|
||||||
config.registration_method_default = config.registration_methods[:open]
|
config.registration_method_default = if ENV["DEFAULT_REGISTRATION"] == "invite"
|
||||||
|
config.registration_methods[:invite]
|
||||||
|
elsif ENV["DEFAULT_REGISTRATION"] == "approval"
|
||||||
|
config.registration_methods[:approval]
|
||||||
|
else
|
||||||
|
config.registration_methods[:open]
|
||||||
|
end
|
||||||
|
|
||||||
# Default limit on number of rooms users can create
|
# Default limit on number of rooms users can create
|
||||||
config.number_of_rooms_default = 15
|
config.number_of_rooms_default = 15
|
||||||
|
|
|
@ -55,4 +55,6 @@ Rails.application.configure do
|
||||||
config.bigbluebutton_secret = config.bigbluebutton_secret_default
|
config.bigbluebutton_secret = config.bigbluebutton_secret_default
|
||||||
|
|
||||||
config.loadbalanced_configuration = false
|
config.loadbalanced_configuration = false
|
||||||
|
|
||||||
|
config.registration_method_default = config.registration_methods[:open]
|
||||||
end
|
end
|
||||||
|
|
|
@ -202,3 +202,11 @@ MAINTENANCE_MODE=false
|
||||||
# DB_NAME=greenlight_production
|
# DB_NAME=greenlight_production
|
||||||
# DB_USERNAME=postgres
|
# DB_USERNAME=postgres
|
||||||
# DB_PASSWORD=password
|
# DB_PASSWORD=password
|
||||||
|
|
||||||
|
# Specify the default registration to be used by Greenlight until an administrator sets the
|
||||||
|
# registration method
|
||||||
|
# Allowed values are:
|
||||||
|
# open - For open registration
|
||||||
|
# invite - For invite only registration
|
||||||
|
# approval - For approve/decline registration
|
||||||
|
DEFAULT_REGISTRATION=open
|
||||||
|
|
Loading…
Reference in New Issue