django-allauth-ens/allauth_ens/views.py
Aurélien Delobelle 7932da906e Minor changes
Introduce new settings:
- ACCOUNT_HOME_URL, used by 'Site name' link on templates.
- ACCOUNT_DETAILS_URL, used on templates when user is connected.

'username' is registered as extra_data too for Clipper provider.

Template tag 'get_accounts_by_providers' is cleaner.

Remove useless account/settings view. Its content should be displayed
by some profile view.

SOCIALACCOUNT_ENABLED settings (of allauth package) doesn't work well.
Template tag 'is_socialaccount_enabled' provides a better check.
2017-09-16 02:33:40 +02:00

18 lines
382 B
Python

from django.core.urlresolvers import reverse_lazy
from django.views.generic import RedirectView
class CaptureLogin(RedirectView):
url = reverse_lazy('account_login')
query_string = True
capture_login = CaptureLogin.as_view()
class CaptureLogout(RedirectView):
url = reverse_lazy('account_logout')
query_string = True
capture_logout = CaptureLogout.as_view()