euphorik_minichat:update_date_derniere_connexion(User#user.id),
json_reponse_login_ok(User);
loginUser(_) ->
- erreur("Erreur login").
+ % ajoute un délais d'attente (TODO : un autre moyen plus élégant ?)
+ receive after 1000 ->
+ erreur("Erreur login")
+ end.
\r
% Renvoie un string() représentant un cookie en base 36. Il y a 10^32 possibillités.\r
{nick, Pseudo},
{email, Email},
{css, Css},
+ {nick_format, Nick_format_str},
{main_page, Main_page},
{conversations, {array, Conversations_json}}
]
[],
Conversations_json
),
- case euphorik_minichat:set_profile(Cookie, Login, Password, Pseudo, Email, Css, Main_page, Conversations) of
+ case euphorik_minichat:set_profile(Cookie, Login, Password, Pseudo, Email, Css, list_to_atom(Nick_format_str), Main_page, Conversations) of
ok ->
json_reponse_ok();
login_deja_pris ->
{login, User#user.login},
{email, User#user.email},
{css, User#user.css},
+ {nick_format, atom_to_list(User#user.nick_format)},
{main_page, User#user.page_principale},
{conversations,
{array,