kebab-project/server-ror — Issue #11: Login
Author: onurozgurozkan
Created: 2011-11-21 17:08:42+00:00
State: open

POST /sessions/

**Input**

**username_or_email**

> Required **string**

**password**

> Required **string**

### Response Success

Status: 200 :ok
```js
{
"success": "true",
"user": {
"id": 1,
"first_name": "First Name",
"last_name": "Last Name",
"locale": "tr"
},
"privileges": [
"login",
"logout",
"change_profile"
],
"apps": [
"personal_setting",
"report"
]
}
````

### Response Failed
Status: 401 :unauthorized

```js
{
"success": false
}
````