|
|
|
@ -7,12 +7,12 @@ class SignupController < ApplicationController
|
|
|
|
|
|
|
|
|
|
layout 'frontend'
|
|
|
|
|
|
|
|
|
|
ssl_required :signup, :create, :create_http_authentication
|
|
|
|
|
ssl_required :signup, :create, :create_http_authentication, :create_http_authentication_in_progress
|
|
|
|
|
|
|
|
|
|
skip_before_filter :http_header_authentication, only: [:create_http_authentication]
|
|
|
|
|
skip_before_filter :http_header_authentication, only: [:create_http_authentication, :create_http_authentication_in_progress]
|
|
|
|
|
|
|
|
|
|
before_filter :load_organization, only: [:create_http_authentication]
|
|
|
|
|
before_filter :check_organization_quotas, only: [:create_http_authentication]
|
|
|
|
|
before_filter :load_organization, only: [:create_http_authentication, :create_http_authentication_in_progress]
|
|
|
|
|
before_filter :check_organization_quotas, only: [:create_http_authentication, :create_http_authentication_in_progress]
|
|
|
|
|
before_filter :load_mandatory_organization, only: [:signup, :create]
|
|
|
|
|
before_filter :disable_if_ldap_configured
|
|
|
|
|
before_filter :initialize_google_plus_config
|
|
|
|
@ -97,6 +97,12 @@ class SignupController < ApplicationController
|
|
|
|
|
render_500
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def create_http_authentication_in_progress
|
|
|
|
|
authenticator = Carto::HttpHeaderAuthentication.new
|
|
|
|
|
render_500 unless authenticator.autocreation_enabled? && authenticator.creation_in_progress?(request)
|
|
|
|
|
render 'shared/signup_confirmation'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def trigger_account_creation(account_creator)
|
|
|
|
|