From 39571c75ebc06d4fbfe3199207e2199d1f3ea41b Mon Sep 17 00:00:00 2001 From: chirac Date: Tue, 22 Aug 2017 22:29:26 +0200 Subject: [PATCH] Retire le login custom --- machines/urls.py | 1 - machines/views.py | 5 ----- 2 files changed, 6 deletions(-) diff --git a/machines/urls.py b/machines/urls.py index 2c9d7e4d..b35e9d6f 100644 --- a/machines/urls.py +++ b/machines/urls.py @@ -67,7 +67,6 @@ urlpatterns = [ url(r'^history/(?Pservice)/(?P[0-9]+)$', views.history, name='history'), url(r'^$', views.index, name='index'), url(r'^rest/mac-ip/$', views.mac_ip, name='mac-ip'), - url(r'^rest/login/$', views.login_user, name='login'), url(r'^rest/regen-achieved/$', views.regen_achieved, name='regen-achieved'), url(r'^rest/mac-ip-dns/$', views.mac_ip_dns, name='mac-ip-dns'), url(r'^rest/alias/$', views.alias, name='alias'), diff --git a/machines/views.py b/machines/views.py index cda053fa..a3b20312 100644 --- a/machines/views.py +++ b/machines/views.py @@ -821,8 +821,3 @@ def regen_achieved(request): obj.first().done_regen() return HttpResponse("Ok") -@csrf_exempt -def login_user(request): - user = authenticate(username=request.POST['username'], password=request.POST['password']) - login(request, user) - return HttpResponse("Logged In")