Reputation: 23737
I have followed the railstutorial.org in creating my own authentication system but it looks like there's an error.
The sign_in only works when the user has been created in the same device.
e.g:
1) I deploy the app to heroku
2) I create the user on my MAC
3) I try to sign in on my iPhone
4) Failure.
Link : http://railstutorial.org/chapters/sign-in-sign-out#top
The same happens if you replace "my MAC" for iPhone of for any other computer.
Could it be because of sessions?
What could be causing this?
Upvotes: 0
Views: 89
Reputation: 5201
I know this doesn't solve the problem directly but why not try a prebuilt authentication system like devise. People have put a lot of effort into solving many of the issues that you might come across and it seems crazy to re-create the wheel in terms of login.
Upvotes: 2