From 8d71ce2c130d2f93c0b5ed37348adcc76fa7807c Mon Sep 17 00:00:00 2001 From: Gabriel Detraz 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")