Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

History

Revisions

  • I just got through this, pretty annoying and there are a lot of old and misleading threads connecting Omniauth / Devise / Facebook. Hopefully this will keep people from wasting their time debugging this.

    @mojowen mojowen committed May 2, 2012
    5b63efa
  • On [this wiki page](https://github.com/plataformatec/devise/wiki/How-To%3a-Allow-users-to-sign-in-using-their-username-or-email-address) one can see that he has to add this : def self.find_first_by_auth_conditions(warden_conditions) conditions = warden_conditions.dup login = conditions.delete(:login).downcase where(conditions).where(["lower(username) = :value OR lower(email) = :value", { :value => login.downcase }]).first end in his user.rb file. But actually it crashes when submitting the reset password form because it then tries to find the :login key in the conditions hash which does not exists, it should instead use :reset_password_token, like so : def self.find_first_by_auth_conditions(warden_conditions) conditions = warden_conditions.dup if reset_password_token = conditions[:reset_password_token] where(conditions).where(["reset_password_token = ?", reset_password_token]).first else login = conditions.delete(:login).downcase where(conditions).where(["lower(username) = :value OR lower(email) = :value", { :value => login.downcase }]).first end end Another way would be to add a hidden field in the passwords/edit.html.erb view file. What do you think ?

    @jerefrer jerefrer committed May 2, 2012
    2e37cd8
  • Updated How To: Do not redirect to login page after session timeout (markdown)

    @preetamreddy preetamreddy committed Apr 29, 2012
    7aaa6b1
  • Updated How To: Do not redirect to login page after session timeout (markdown)

    @preetamreddy preetamreddy committed Apr 29, 2012
    29cb750
  • Specifying location for creating the CustomFailureApp file and a note on autoloading the app.

    @preetamreddy preetamreddy committed Apr 29, 2012
    944f08a
  • Updated How To: Allow users to sign in using their username or email address (textile)

    @Zhomart Zhomart committed Apr 29, 2012
    59c391e
  • Created How To: Use custom mailer (markdown)

    @petrbela petrbela committed Apr 27, 2012
    8fc8db5
  • It's probably right link

    @avanes avanes committed Apr 27, 2012
    a87c142
  • Updated How To: Use Recaptcha with Devise (markdown)

    @ilovenwd ilovenwd committed Apr 26, 2012
    185cbf7
  • Add Norwegian translation with updates for Devise 2.0

    @henningjensen henningjensen committed Apr 25, 2012
    ba15d3c
  • Change the URL.

    @magicienap magicienap committed Apr 24, 2012
    0c6ed54
  • simplify by overriding the right method

    @saizai saizai committed Apr 23, 2012
    2117c62
  • add rails3-bootstrap-devise-cancan example app

    @DanielKehoe DanielKehoe committed Apr 20, 2012
    24a2037
  • Updated I18n (textile)

    simonc committed Apr 20, 2012
    2bcafef
  • by passing -> bypassing

    @fenelon fenelon committed Apr 19, 2012
    e5192af
  • Created How To: Add :confirmable to Users (markdown)

    @ranmocy ranmocy committed Apr 19, 2012
    b0e9b92
  • Destroyed How To: Add :confirmable to Users (markdown)

    @ranmocy ranmocy committed Apr 19, 2012
    8c3e715
  • do...end is the preferred format for multi-line blocks.

    @shadab16 shadab16 committed Apr 19, 2012
    1aac38e
  • zh-TW.yml added for Devise 2.0

    @tomchentw tomchentw committed Apr 18, 2012
    e084724
  • Updated I18n (textile)

    @tomchentw tomchentw committed Apr 18, 2012
    55d4417
  • Need further info (deleted in previous revisions)

    davidgoli committed Apr 18, 2012
    914e9ef
  • Remove (my) bad code

    @joeybaker joeybaker committed Apr 17, 2012
    3868bf4
  • updated sample code, google returns a slightly different result now

    @joeybaker joeybaker committed Apr 17, 2012
    641edbd
  • Updated Extensions (textile)

    @ringe ringe committed Apr 16, 2012
    ec77801
  • Updated I18n (textile)

    @borgand borgand committed Apr 16, 2012
    1c5be57
  • just adding ruby syntax highlighting for a easer read

    @gardelea gardelea committed Apr 15, 2012
    a3c9159
  • Updated OmniAuth: Overview (markdown)

    koenhandekyn committed Apr 15, 2012
    7ed5486
  • Updated OmniAuth: Overview (markdown)

    koenhandekyn committed Apr 15, 2012
    04f25bf
  • Updated How To: Redirect to a specific page on successful sign in out (markdown)

    patrickberkeley committed Apr 14, 2012
    e846ac0
  • Updated I18n (textile)

    @ruseel ruseel committed Apr 13, 2012
    8ffac84