2017-10-26 11:21:56 +11:00
|
|
|
import django.contrib.auth.views
|
2017-10-25 01:46:18 +11:00
|
|
|
from otp_agents.forms import OTPAuthenticationForm
|
2017-10-25 00:25:41 +11:00
|
|
|
from lemoncurry import breadcrumbs
|
|
|
|
|
|
2017-10-25 00:55:38 +11:00
|
|
|
breadcrumbs.add(route='lemonauth:login', label='log in', parent='home:index')
|
2017-10-24 23:50:57 +11:00
|
|
|
|
2017-10-26 11:21:56 +11:00
|
|
|
login = django.contrib.auth.views.LoginView.as_view(
|
2017-10-25 01:25:03 +11:00
|
|
|
authentication_form=OTPAuthenticationForm,
|
2017-10-25 09:25:35 +11:00
|
|
|
extra_context={'title': 'log in'},
|
2017-10-24 23:50:57 +11:00
|
|
|
template_name='lemonauth/login.html',
|
|
|
|
|
redirect_authenticated_user=True,
|
|
|
|
|
)
|