mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
django2.2: replace deprecated login view
This commit is contained in:
@ -69,15 +69,13 @@ from counter.views import StudentCardForm
|
||||
from trombi.views import UserTrombiForm
|
||||
|
||||
|
||||
def login(request):
|
||||
class SithLoginView(views.LoginView):
|
||||
"""
|
||||
The login View
|
||||
"""
|
||||
The login view
|
||||
|
||||
Needs to be improve with correct handling of form exceptions
|
||||
"""
|
||||
return views.login(
|
||||
request, template_name="core/login.jinja", authentication_form=LoginForm
|
||||
)
|
||||
template_name = "core/login.jinja"
|
||||
authentication_form = LoginForm
|
||||
|
||||
|
||||
def logout(request):
|
||||
|
Reference in New Issue
Block a user