2017-10-25 20:21:56 -04:00
|
|
|
import django.contrib.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
|
|
|
|
2017-10-25 20:21:56 -04:00
|
|
|
login = django.contrib.auth.views.LoginView.as_view(
|
2017-10-24 10:25:03 -04:00
|
|
|
authentication_form=OTPAuthenticationForm,
|
2017-10-24 18:25:35 -04:00
|
|
|
extra_context={'title': 'log in'},
|
2017-10-24 08:50:57 -04:00
|
|
|
template_name='lemonauth/login.html',
|
|
|
|
redirect_authenticated_user=True,
|
|
|
|
)
|