search for: find_by_openid_url

Displaying 1 result from an estimated 1 matches for "find_by_openid_url".

2008 Aug 30
3
Working with sessions in beast forum
...39;, :expires => 1.year.ago.utc} password_authentication params[:login], params[:password] end end protected def open_id_authentication authenticate_with_open_id params[:openid_url] do |result, openid_url| if result.successful? if self.current_user = User.find_by_openid_url(openid_url) successful_login else failed_login "Sorry, no user by the identity URL {openid_url} exists"[:openid_no_user_message, openid_url.inspect] end else failed_login result.message end end end def pa...