hhroc / yellr-server

Server for yellr project
GNU Affero General Public License v3.0
6 stars 5 forks source link

User data not showing on refresh #238

Closed Nolski closed 9 years ago

Nolski commented 9 years ago

This could be solved by having check_logged_in return the user info along with the rest of the data. @thequbit could you do this?

thequbit commented 9 years ago

This look okay?

{
    "username": "system",
    "first_name": "SYSTEM",
    "last_name": "USER",
    "fence": {
        "bottom_right_lat": -90,
        "top_left_lng": -180,
        "top_left_lat": 90,
        "bottom_right_lng": -180
    },
    "success": false,
    "organization_id": 1,
    "organization": "Yellr",
    "logged_in": true
}
Nolski commented 9 years ago

Yup. This is exactly what I was looking for!

Nolski commented 9 years ago

I think this has been fixed from a PR a while ago? Can't reproduce anymore

thequbit commented 9 years ago

I'm happy. Closing.