Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rememberable not working #5

Open
SynnaxCrab opened this issue Jan 4, 2011 · 3 comments
Open

rememberable not working #5

SynnaxCrab opened this issue Jan 4, 2011 · 3 comments

Comments

@SynnaxCrab
Copy link

Enable the rememberable, when sign_in with the rememberable token, seems the code run into a infinite loop getting the view/all from CouchDB.

below is what CouchDB log show:

1> [info] [<0.28082.1>] 127.0.0.1 - - 'GET' /devise_couch/_design/User/_view/all?conditions=%7B%3Aremember_token%3D%3E%226PgI969vCxewiTPV0jnzoTVUIN61d8IqcUjy2GycVv4BieA9o7LFvV37zTIz%22%7D&limit=1&include_docs=true 200
1> [info] [<0.28084.1>] 127.0.0.1 - - 'GET' /devise_couch/_design/User/_view/all?conditions=%7B%3Aremember_token%3D%3E%22eLH24SRRkdRbMxExFvXMnBxx7WobsiY8RRBnjdK8TxiXLswSsAxw4vlfercz%22%7D&limit=1&include_docs=true 200
1> [info] [<0.28085.1>] 127.0.0.1 - - 'GET' /devise_couch/_design/User/_view/all?conditions=%7B%3Aremember_token%3D%3E%225jwDs6ZBxUyQIS024LvrdCixzbX8E6tdTybxA89o1stx77c56n8s51H2ihYz%22%7D&limit=1&include_docs=true 200
1> [info] [<0.28086.1>] 127.0.0.1 - - 'GET' /devise_couch/_design/User/_view/all?conditions=%7B%3Aremember_token%3D%3E%222jVrGmNnIMQxA6cyVuvPSPbQigRCb1X1l43ULHLYkFyyQYNWIEbAWdCuBkIz%22%7D&limit=1&include_docs=true 200
1> [info] [<0.28087.1>] 127.0.0.1 - - 'GET' /devise_couch/_design/User/_view/all?conditions=%7B%3Aremember_token%3D%3E%22Qx8mGCKBujDwLYwhl3nAnCvdCBDgLdOExAqhyA4FcANFl7tj9ctrDA9nf9kz%22%7D&limit=1&include_docs=true 200
1> [info] [<0.28088.1>] 127.0.0.1 - - 'GET' /devise_couch/_design/User/_view/all?conditions=%7B%3Aremember_token%3D%3E%22UOnzZVKSr3fo42mevyePNw56HM1nnL8zI3V4s1Gv648vVy5XfCGKxg6mxYMz%22%7D&limit=1&include_docs=true 200
1> [info] [<0.28089.1>] 127.0.0.1 - - 'GET' /devise_couch/_design/User/_view/all?conditions=%7B%3Aremember_token%3D%3E%222BdWU3yHR4rQHlCBluyrU3g2PqjCKx054t63Iwf4GJ1DjglGIHd5p0l3ZaEz%22%7D&limit=1&include_docs=true 200
1> [info] [<0.28090.1>] 127.0.0.1 - - 'GET' /devise_couch/_design/User/_view/all?conditions=%7B%3Aremember_token%3D%3E%22mlq5SvZ2DrsCEecn5cTg4eeOJ3OmXV52oxXypPght1ACIuGBqveXsy1OneMz%22%7D&limit=1&include_docs=true 200
1> [info] [<0.28091.1>] 127.0.0.1 - - 'GET' /devise_couch/_design/User/_view/all?conditions=%7B%3Aremember_token%3D%3E%22l4SztRmykWTaVNk8uwJX3WkzLBWVqfhV5zEofMgLxkejsKrrRULWQP8dH7Az%22%7D&limit=1&include_docs=true 200

@shenoudab
Copy link
Owner

i have add a gmtime for DateTime for the for raising gmtime undefined.

please, send new log after updating the devise_couch from master.

@SynnaxCrab
Copy link
Author

My app was still not working at first. I checked the example app and found out it caused by a outdated devise.rb config in my app. The new config file use "config.use_salt_as_remember_token = true".

Sorry for the wrong reporting.

@SynnaxCrab
Copy link
Author

errr...when set config. use_salt_as_remember_token = false (using database stored remember_token). The issue still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants