refactor: use MULTI_TENANT env variable, model concern instead of controller (#accepting_signups?)
This commit is contained in:
@@ -14,7 +14,7 @@ class SessionsController < ApplicationController
|
||||
else
|
||||
signup = Signup.new(email_address: email_address)
|
||||
if signup.valid?(:identity_creation)
|
||||
identity = signup.create_identity unless single_tenant?
|
||||
identity = signup.create_identity if Account.accepting_signups?
|
||||
redirect_to_session_magic_link identity
|
||||
else
|
||||
head :unprocessable_entity
|
||||
|
||||
Reference in New Issue
Block a user