Commit 85e7aa84 authored by Vincent Le gallic's avatar Vincent Le gallic

Quand on change le protocole du serveur, c'est bien de mettre à jour le client…

parent 72c980c6
......@@ -173,7 +173,7 @@ def login_NK(request, username, password, masque=[[], [], False]):
})
request.session["pages"] = save_pages
# on récupère un cookie pour pouvoir "rouvrir" cette connexion plus tard
sock.write("django_get_cookie")
sock.write("get_cookie")
out = full_read(sock)
request.session["cookie"] = out["msg"]
sock.write("whoami")
......@@ -197,7 +197,7 @@ def login_NK_cookie(request, cookie):
form = LoginForm(label_suffix=" :")
try:
sock = connect_NK()
sock.write('django_connect_cookie "%s"' % (cookie))
sock.write('connect_cookie "%s"' % (cookie))
out = full_read(sock)
except NKError as exc:
return (False, _gerer_NKError(request, exc, form))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment