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, preventing login with "You can't search with more than one condition yet =(" #9

Open
shannonwells opened this issue Apr 7, 2011 · 0 comments

Comments

@shannonwells
Copy link

Don't know if this is a bug or user error.

If a user checks "remember me" it saves the remember token, but then for some reason on a new session tries to supply two keys (the user id and the token) directly to couch, and does not try to access the remember_token view. This causes the following output:

You can't search with more than one condition yet =(
Extracted source (around line #10):

7: #beta
8: #logo= link_to ' '.html_safe, :root
9: #signin
10: - if user_signed_in?
11: #userActionsLoggedin.linkmenus
12: %span Welcome, #{current_user.email}
13: %span.menuLink= link_to("Profile", :action => 'show', :controller => 'users', :id => current_user.id)
Rails.root: /Users/swells/TestHub/TestHub/testcloud-1.0.0/testcloud/testcloud

Application Trace | Framework Trace | Full Trace
/Users/swells/.rvm/gems/ruby-1.9.2-p180/bundler/gems/devise_couch-4fc35f731fbf/lib/devise/orm/couchrest_model/schema.rb:20:in find' devise (1.1.5) lib/devise/models/rememberable.rb:108:inserialize_from_cookie'
devise (1.1.5) lib/devise/strategies/rememberable.rb:19:in authenticate!' warden (1.0.3) lib/warden/strategies/base.rb:53:in_run!'
warden (1.0.3) lib/warden/proxy.rb:303:in block in _run_strategies_for' warden (1.0.3) lib/warden/proxy.rb:298:ineach'
warden (1.0.3) lib/warden/proxy.rb:298:in _run_strategies_for' warden (1.0.3) lib/warden/proxy.rb:271:in_perform_authentication'
warden (1.0.3) lib/warden/proxy.rb:90:in authenticate' warden (1.0.3) lib/warden/proxy.rb:100:inauthenticate?'
devise (1.1.5) lib/devise/controllers/helpers.rb:216:in user_signed_in?' actionpack (3.0.1) lib/abstract_controller/helpers.rb:55:inuser_signed_in?'
app/views/front_page/index.haml:10:in `block in _app_views_front_page_index_haml__637491628106427591_2190825140__4307954043896241644'

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

1 participant