X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=doc%2Fprotocole3.txt;h=2eb81a62ded3883bcc676bb78f6185f4654a0339;hp=55e2115e388f966b0865ab6e5cc256179603a771;hb=d0a68333e392d0aac61b612a07dd9cc80c4eeb93;hpb=f2eb4c4ec53b164804c0c7441830372358ce74e6 diff --git a/doc/protocole3.txt b/doc/protocole3.txt index 55e2115..2eb81a6 100644 --- a/doc/protocole3.txt +++ b/doc/protocole3.txt @@ -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" : { .. } // voir } ou { @@ -74,29 +75,12 @@ 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", "login" : "paul49", - "email" : "paul@pierre.com", - "css" : "css/3/euphorik.css", - "chat_order" : "chrono" | "reverse", - "nick_format" : "nick" | "login" | "nick_login", - "view_times" : true | false, - "view_tooltips" : true | false, - "conversations" : [{"root" : 3, "minimized" : true}, "ek_master" : true | false, - "ostentatious_master" : "invisible" | "light" | "heavy" + "profile" : } @@ -109,12 +93,8 @@ c -> s === Profile === -c -> s + { - "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 +105,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" : + } s -> c