From cf4918e901da8f2c388eebd33a500bf737943685 Mon Sep 17 00:00:00 2001 From: MrArmonius Date: Mon, 26 Jul 2021 16:54:51 +0200 Subject: Add MessageID for asynchronous request ID is stored in the session with the type `uint32` Correction javascript For the `for loop`, we need don't forget than know we have in format `JSON` the response: `search:{..}, id:0` For the id, don't forget to change the global value of `JS`. --- main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 6059d04..da75ce0 100644 --- a/main.go +++ b/main.go @@ -392,6 +392,9 @@ func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo { session.Values["login_password"] = password session.Values["login_dn"] = user_dn + //Add Value MessageID + session.Values["MessageID"] = uint32(0) + err = session.Save(r, w) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) -- cgit v1.2.3