lib/authlogic_oauth/session.rb in authlogic-oauth-1.0.1 vs lib/authlogic_oauth/session.rb in authlogic-oauth-1.0.2
- old
+ new
@@ -47,10 +47,10 @@
end
private
def authenticating_with_oauth?
- !controller.params[:login_with_oauth].blank? || oauth_response
+ (controller.params && !controller.params[:login_with_oauth].blank?) || oauth_response
end
def authenticate_with_oauth
if @record
self.attempted_record = record
\ No newline at end of file