lemoncurry/lemonauth/views.py

11 lines
327 B
Python
Raw Permalink Normal View History

from django.contrib.auth import views as auth_views
from lemoncurry import breadcrumbs
breadcrumbs.add(route='lemonauth:login', label='login', parent='home:index')
login = auth_views.LoginView.as_view(
template_name='lemonauth/login.html',
redirect_authenticated_user=True,
)
logout = auth_views.LogoutView.as_view()