{% if corp_app.authentication_method == 'secret_code' %}

The secret code:
{{ corp_membership.corp_profile.secret_code }}

{% elif corp_app.authentication_method == 'email' %}

The Authorized E-mail Domain:
(The authorized e-mail domain will authenticate prospective members as they apply for membership under this corporation)
{% for domain in corp_membership.corp_profile.authorized_domains.all %} {{ domain.name }}{% if not forloop.last %}, {% endif %} {% endfor %}

{% endif %}