X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=doc%2Fprotocole3.txt;fp=doc%2Fprotocole3.txt;h=c8642ab3c2b213121a066136aba5ddcb084395fc;hp=55e2115e388f966b0865ab6e5cc256179603a771;hb=11fe8f6d268a9b1c0a773294cc7d70ffdb6afb30;hpb=956dc2acd6aee480b5daa4def16346f9bab80056 diff --git a/doc/protocole3.txt b/doc/protocole3.txt index 55e2115..c8642ab 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_infos" : { .. } // voir } 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 + { - "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" : + } s -> c