jonalmeida / geo_android

Android app for the Pseudochat
1 stars 0 forks source link

[Server - Client] Implement session #4

Open jpaulomotta opened 10 years ago

jpaulomotta commented 10 years ago

[Server] Should listen to a POST request to /login with the parameter: nIckname: String -If login was successful reply with HTTP 200 and send the session cookie -Otherwise replies with HTTP 400 (Bad Request) - Exemples: nickname is too long or too short, or inexistent obs: Nicknames are NOT unique.

[Server] Should attach the current client to a session

[Client] Should handle with the session cookie

[Server] Should reply to any request to a url different then /login made by a non logged client with JSON: { error: "You are not connected." }

jonalmeida commented 10 years ago

Looks good to me - v0,2 is a good placement.