From 4e270b49f3b46c0ae9c0071b285af9aec62190c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 29 Apr 2015 19:35:14 +0200 Subject: [PATCH] misc: correctly set can_change_password in login_password_profile.html (#7093) --- src/authentic2/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/views.py b/src/authentic2/views.py index 7690a9a..e620e27 100644 --- a/src/authentic2/views.py +++ b/src/authentic2/views.py @@ -458,7 +458,7 @@ def logout(request, next_url=None, default_next_url='auth_homepage', def login_password_profile(request, *args, **kwargs): context_instance = kwargs.pop('context_instance', None) or RequestContext(request) can_change_password = (app_settings.A2_REGISTRATION_CAN_CHANGE_PASSWORD - and request.user.has_usable_password) + and request.user.has_usable_password()) return render_to_string('auth/login_password_profile.html', {'can_change_password' : can_change_password}, context_instance=context_instance) -- 2.1.4