Skip to content

Commit

Permalink
add DMIRR_SSL_LOGIN
Browse files Browse the repository at this point in the history
  • Loading branch information
BJ Dierkes committed Feb 14, 2012
1 parent f149919 commit 15916f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dmirr.hub/dmirr/hub/context_processors.py
Expand Up @@ -14,5 +14,6 @@ def template_shortcuts(request):
'site' : Site.objects.get_current(),
'dmirr_version' : get_distribution('dmirr.hub').version,
'flags' : "%simg/flags/" % settings.STATIC_URL,
'ssl_login' : settings.DMIRR_SSL_LOGIN,
}
return cuts
1 change: 1 addition & 0 deletions src/dmirr.hub/dmirr/hub/settings.py
Expand Up @@ -227,6 +227,7 @@
CACHES['default'] = CACHES['dummy']

DMIRR_REMOTE_ADDR_KEY = 'REMOTE_ADDR'
DMIRR_SSL_LOGIN = False

# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
Expand Down
6 changes: 5 additions & 1 deletion src/dmirr.hub/dmirr/hub/templates/base.html
Expand Up @@ -143,7 +143,11 @@ <h3>Login to dMirr</h3>
</form>
</div>
</div>
<p class="pull-right"><a data-controls-modal="signin-modal" href="javascript:;">Login</a></p>
{% if ssl_login %}
<p class="pull-right"><a href="{% url userena_signin %}">Login</a></p>
{% else %}
<p class="pull-right"><a data-controls-modal="signin-modal" href="javascript:;">Login</a></p>
{% endif %}
{% endif %}
</div>
</div>
Expand Down

0 comments on commit 15916f3

Please sign in to comment.