Giter Site home page Giter Site logo

OpenID Problems about authlogic_bundle HOT 5 CLOSED

tsechingho avatar tsechingho commented on August 29, 2024
OpenID Problems

from authlogic_bundle.

Comments (5)

tsechingho avatar tsechingho commented on August 29, 2024

hi, I test again and have no such problem. (test openid by myopenid.com)

After create a new app, you should register, activate and update account with openid_indentifier, then you can login by your openid.

Or if you request account registration by openid_indentifier with this engine, I have to say sorry. I will rewrite this part next week.

from authlogic_bundle.

rmoriz avatar rmoriz commented on August 29, 2024

I can add my openid_identifier when creating a new account - but the login form does not show the openid login form. It gets hidden (dispay:none) all the time :-(

from authlogic_bundle.

rmoriz avatar rmoriz commented on August 29, 2024

login GET /login {:controller=>"user_sessions", :action=>"new"}

At this stage the @user_session should be empty because the user is not known, shouldn't it? So the openid_identifier is always blank and there's no chance to sign in with openid...

from authlogic_bundle.

tsechingho avatar tsechingho commented on August 29, 2024

In the block of "new" of UserSessionsController, we have "@user_session = UserSession.new" defined, and this have the same meaning as "User.new".

So we can check "@user_session.openid_identifier.blank?" and get "true" as you know, and then show "div#password_box", hide "div#openid_box" in first place.

The display toggle of "div#openid_box" / "div#password_box" is working by the javascript of "Password / OpenID" in the login page, and default javascript framework is prototype.

<legend>Login using <a href="#" onclick="$('password_box').toggle(); $('openid_box').toggle(); $('errorExplanation').toggle();; return false;">Password / OpenID</a></legend>

So I guess you may remove prototype and use jQuery, and the display toggle got failed. Or other possibilities?

from authlogic_bundle.

rmoriz avatar rmoriz commented on August 29, 2024

Ah, sorry!

After copying the translations to my config/locales directory it worked (you fixed that in your latest commit). Now the toggle text appears and is working.

Thank you :-)

from authlogic_bundle.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.