diff --git a/lib/omniauth/form.rb b/lib/omniauth/form.rb index fbb44ac..2069990 100644 --- a/lib/omniauth/form.rb +++ b/lib/omniauth/form.rb @@ -94,6 +94,7 @@ module OmniAuth self.options = options @html = "" + @with_custom_button = false header(options[:title],options[:header_info]) end @@ -130,6 +131,7 @@ module OmniAuth end def button(text) + @with_custom_button = true @html << "\n" end @@ -162,8 +164,8 @@ module OmniAuth def footer return self if @footer + @html << "\n" unless @with_custom_button @html << <<-HTML -