Skip to content

rememberable, preventing login with "You can't search with more than one condition yet =(" #9

@shannonwells

Description

@shannonwells

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions