devise_couch
devise_couch copied to clipboard
rememberable not working
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
i have add a gmtime for DateTime for the for raising gmtime undefined.
please, send new log after updating the devise_couch from master.
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.
errr...when set config. use_salt_as_remember_token = false (using database stored remember_token). The issue still exists.