Lately I’ve been using Bort when I start making a Rails app - it’s quick and gives me a bunch of code that I would have to set up anyway. One thing it includes is Restful Authentication and Open ID support. Unfortunately, the way things go now, if you create an account using OpenID you’re forced to log in right away. That’s just silly and unnecessary. The fix is pretty easy, and I haven’t seen it online, though I know plenty of people are doing it.
In users_controller.rb just add one line to the successful_creation method.
self.current_user=@user unless @user.not_using_openid?
That’s it! Your users will be on their way even faster now. Take advantage of the glory of OpenID. Many thanks to Brian Hogan for pointing me in the right direction when I started looking in to this.

Post a Comment
You must be logged in to post a comment.