From 3de45a52d2189bf50f4f243efaf470d47f07c070 Mon Sep 17 00:00:00 2001 From: hernani Date: Thu, 8 Jul 2010 23:40:13 +0000 Subject: [PATCH] Closing OSQA-36. Applied patch from Tom Hughes. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@509 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/skins/default/templates/auth/auth_settings.html | 5 +++-- forum/views/auth.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/forum/skins/default/templates/auth/auth_settings.html b/forum/skins/default/templates/auth/auth_settings.html index 3e32007..8b52019 100644 --- a/forum/skins/default/templates/auth/auth_settings.html +++ b/forum/skins/default/templates/auth/auth_settings.html @@ -19,10 +19,10 @@ {% ifequal view_user request.user %} {% endifequal %} +{% if allow_local_auth %} {% if has_password %}

{% blocktrans %}This is where you can change your password. Make sure you remember it!{% endblocktrans %}

-{% endif %} -{% if not has_password %} +{% else %}

{% blocktrans %}You can set up a password for your account, so you can login using standard username and password!{% endblocktrans %}

{% endif %}
@@ -33,5 +33,6 @@
+{% endif %} {% endblock %} diff --git a/forum/views/auth.py b/forum/views/auth.py index 5a9f954..08013f9 100644 --- a/forum/views/auth.py +++ b/forum/views/auth.py @@ -346,6 +346,7 @@ def auth_settings(request, id): 'form': form, 'has_password': user_.has_usable_password(), 'auth_keys': auth_keys_list, + 'allow_local_auth': AUTH_PROVIDERS.get('local', None), }, context_instance=RequestContext(request)) def remove_external_provider(request, id): -- 2.45.2