ryanb / govsgo

Rails 3 app for playing the board game Go online.
http://govsgo.com
MIT License
140 stars 23 forks source link

Remember Login #5

Closed ryanb closed 14 years ago

ryanb commented 14 years ago

The user_id is currently stored in the session, instead it should store a token in a cookie so the user will be remembered when coming back. This unique token will need to be generated upon creating each user.

I'm thinking this unique token can also be used for login through other services. For example, if I supply an API, an iPhone app or other app can log-in through the token so one doesn't need to give away his password.

Alternatively I can turn this into an OAuth provider, but I don't know how that would work when logging in through another OAuth server such as Twitter. Hmm.

ryanb commented 14 years ago

remember user login based off of token in permanent cookie instead of temporary session - closed by 0910438c66c85b84d739ccca63ec2e222ec719d9