@staticmethod
    def response_domain_security(domain):
        two_factor = domain.two_factor_auth
        secure_sessions = domain.secure_sessions
        msgs = []
        if secure_sessions:
            msgs.append(_("Your project has enabled a 30 minute session timeout setting. "
                          "By changing to a different plan, you will lose the ability to "
                          "enforce this shorter timeout policy."))
        if two_factor:
            msgs.append(_("Two factor authentication is currently required of all of your "
                          "web users for this project space.  By changing to a different "
                          "plan you will lose the ability to enforce this requirement. "
                          "However, any web user who still wants to use two factor "
                          "authentication will be able to continue using it."))
        if msgs:
            return _fmt_alert(
                _("The following security features will be affected if you select this plan:"),
                msgs
            )
Returns the row of the start of the previous diffscuss thread, and the
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/accounting/subscription_changes.py/DomainDowngradeStatusHandler.response_domain_security--crossover with--dataset/ETHPy150Open hut8labs/diffscuss/diffscuss/support/editor.py/find_prev_thread