mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 20:03:11 +00:00
Retire le login custom
This commit is contained in:
parent
5057fc0e7e
commit
39571c75eb
2 changed files with 0 additions and 6 deletions
|
@ -67,7 +67,6 @@ urlpatterns = [
|
|||
url(r'^history/(?P<object>service)/(?P<id>[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'),
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue