diff --git a/bitpoll/base/templates/base/index.html b/bitpoll/base/templates/base/index.html index 2e366e1..7d4725b 100644 --- a/bitpoll/base/templates/base/index.html +++ b/bitpoll/base/templates/base/index.html @@ -203,7 +203,8 @@

{% trans 'Create a poll' %}

- {% if request.user.is_anonymous %} + {% value_from_settings OPENID_ENABLED as openid %} + {% if request.user.is_anonymous and not openid %}
diff --git a/bitpoll/settings.py b/bitpoll/settings.py index 8262404..99d905a 100644 --- a/bitpoll/settings.py +++ b/bitpoll/settings.py @@ -61,6 +61,7 @@ 'POLL_CREATION_REQUIRES_LOGIN', 'POLL_CREATION_ACCOUNT_WEBSITE', 'POLL_CREATION_ACCOUNT_NAME', + 'OPENID_ENABLED', ] LOGIN_REDIRECT_URL = "/"