Permalink
Browse files

Added convience check for http prefix on openid_identifier.

  • Loading branch information...
1 parent cf7c194 commit c5dcf4561489a99db5939455bf5554541a95001f @zk committed Nov 15, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/controllers/user_sessions_controller.rb
@@ -5,6 +5,10 @@ def new
@user_session = UserSession.new
if request.post?
+
+ if params[:user_session] and params[:user_session][:openid_identifier] and not params[:user_session][:openid_identifier].match(/https?:\/\//)
+ params[:user_session][:openid_identifier] = "http://" + params[:user_session][:openid_identifier]
+ end
if (params[:user_session] && params[:user_session][:openid_identifier]) or params[:for_session]

0 comments on commit c5dcf45

Please sign in to comment.