2017-10-24 08:50:57 -04:00
|
|
|
from django.contrib.auth import views as auth_views
|
2017-10-24 10:46:18 -04:00
|
|
|
from otp_agents.forms import OTPAuthenticationForm
|
2017-10-24 09:25:41 -04:00
|
|
|
from lemoncurry import breadcrumbs
|
|
|
|
|
2017-10-24 09:55:38 -04:00
|
|
|
breadcrumbs.add(route='lemonauth:login', label='log in', parent='home:index')
|
2017-10-24 08:50:57 -04:00
|
|
|
|
|
|
|
login = auth_views.LoginView.as_view(
|
2017-10-24 10:25:03 -04:00
|
|
|
authentication_form=OTPAuthenticationForm,
|
2017-10-24 08:50:57 -04:00
|
|
|
template_name='lemonauth/login.html',
|
|
|
|
redirect_authenticated_user=True,
|
|
|
|
)
|
|
|
|
logout = auth_views.LogoutView.as_view()
|