FIX problème de gestion du profile, après ouverture d'une conversation puis enregistr...
[euphorik.git] / doc / protocole3.txt
index 55e2115..c8642ab 100644 (file)
@@ -55,9 +55,10 @@ Le mot de passe est hashé en md5.
 
 c -> s
    { 
-      "header" : {action : "authentification", version : 3},
+      "header" : {action : "register", version : 3},
       "login" : "paul",
-      "password" : "IJKJDHHSAD9081238"
+      "password" : "IJKJDHHSAD9081238",
+      "profile_infos" : { .. } // voir <profile_infos>
    }
 ou
    {
@@ -74,16 +75,7 @@ ou
 s -> c
    {
       "reply" : "register" | "authentification",
-      "status" : "auth_not_registered",
-      "cookie" : "LKJDLAKSJBFLKASN",
-      "id" : 193,
-      "css" : "css/1/euphorik.css",
-      "main_page" : 1
-   }
-ou
-   {
-      "reply" : "register" | "authentification",
-      "status" : "auth_registered",
+      "status" : "auth_registered" | "auth_not_registered",
       "cookie" : "LKJDLAKSJBFLKASN",
       "id" : 193,
       "nick" : "Paul",
@@ -109,12 +101,8 @@ c -> s
  
  
 === Profile ===
-c -> s
+<profile_infos>
    {
-      "header" : {action : "set_profile", version : 3},
-      "cookie" : "LKJDLAKSJBFLKASN",
-      "login" : "paul49",
-      "password" : "IJKJDHHSAD9081238",
       "nick" : "Paul",
       "email" : "paul@pierre.com",
       "css" : "css/3/euphorik.css",
@@ -125,6 +113,15 @@ c -> s
       "conversations" : [{"root" : 3, "minimized" : true},
       "ostentatious_master" : "invisible" | "light" | "heavy"
    }
+
+c -> s
+   {
+      "header" : {action : "set_profile", version : 3},
+      "cookie" : "LKJDLAKSJBFLKASN",
+      "login" : "paul49",
+      "password" : "IJKJDHHSAD9081238",
+      "profile_infos" : <profile_infos>
+   }
       
 s -> c
    <ok>