LOC-2 Client now sends session key with all relevant requests
LOC-2 Client now sends session key with all relevant requests

Having joined a room, the client will now include {{sesskey}} in it's payload for

- {{pollMsg}}
- {{sendMsg}}
- {{leaveRoom}}
- {{closeRoom}}
- {{inviteUser}}
- {{kickUser}}
- {{banUser}}

And will clear the stored key when a user leaves the room.

--- a/client/LocalChatClient.py
+++ b/client/LocalChatClient.py
@@ -52,7 +52,8 @@
         
         payload = {"roomName": self.room, 
                    "mylast":self.last,
-                   "user": self.user
+                   "user": self.user,
+                   "sesskey": self.sesskey
                    }
         
         request = {"action":"pollMsg",
@@ -125,7 +126,8 @@
         
         payload = {"roomName": self.room, 
                    "msg":self.encrypt(json.dumps(msg)),
-                   "user": self.user
+                   "user": self.user,
+                   "sesskey": self.sesskey
                    }
         
         request = {"action":"sendMsg",
@@ -182,7 +184,8 @@
             return False
         
         payload = {"roomName": self.room, 
-                   "user": self.user
+                   "user": self.user,
+                   "sesskey": self.sesskey
                    }
         
         request = {"action":"leaveRoom",
@@ -199,6 +202,7 @@
         self.user = False
         self.last = 0
         self.roompass = False
+        self.sesskey = False
         
         return True
                 
@@ -241,6 +245,7 @@
 
         payload = {"roomName": self.room, 
                    "user": self.user,
+                   "sesskey": self.sesskey
                    }
         
         request = {"action":"closeRoom",
@@ -268,7 +273,8 @@
         payload = {"roomName": self.room, 
                    "user": self.user,
                    "invite": user,
-                   "pass": passw
+                   "pass": passw,
+                   "sesskey": self.sesskey
                    }
         
         request = {"action":"inviteUser",
@@ -295,7 +301,8 @@
         
         payload = {"roomName": self.room, 
                    "user": self.user,
-                   "kick": user
+                   "kick": user,
+                   "sesskey": self.sesskey
                    }
         
         request = {"action":action,