<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,11 @@ class SitemapPluginController &lt; ActionController::Base
   before_filter :check_sitemap_auth
   
   def check_sitemap_auth
-
+    settings = SitemapSetting.find(:first)
+    return unless settings.username &amp;&amp; settings.password
+    authenticate_or_request_with_http_basic do |username, password|
+      username == settings.username &amp;&amp; password == settings.password
+    end
   end
   
 end
\ No newline at end of file</diff>
      <filename>app/controllers/sitemap_plugin_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;h2&gt;Configure your Sitemap&lt;/h2&gt;
 
-&lt;p&gt;Configure your sitemap &lt;em&gt;Site Name&lt;/em&gt;, &lt;em&gt;Description&lt;/em&gt; and sitemap &lt;em&gt;XML Location&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Configure your sitemap &lt;em&gt;Site Name&lt;/em&gt;, &lt;em&gt;Description&lt;/em&gt; and sitemap &lt;em&gt;XML Location&lt;/em&gt;.  The &lt;em&gt;username&lt;/em&gt; and &lt;em&gt;password&lt;/em&gt; fields are optional if you want to password protect these settings.&lt;/p&gt;
 
 &lt;% form_for(@settings) do |f| %&gt;
 &lt;p&gt;
@@ -18,6 +18,16 @@
 	&lt;%= f.text_field :xml_location %&gt;
 &lt;/p&gt;
 
+&lt;p&gt;
+  &lt;%= f.label :username %&gt;
+  &lt;%= f.text_field :username %&gt;
+&lt;/p&gt;
+
+&lt;p&gt;
+  &lt;%= f.label :password %&gt;
+  &lt;%= f.password_field :password %&gt;
+&lt;/p&gt;
+
 &lt;div id=&quot;save_actions&quot;&gt;
 	&lt;p&gt;&lt;%= submit_tag &quot;Save&quot; %&gt;&lt;/p&gt;
 &lt;/div&gt;</diff>
      <filename>app/views/sitemap_settings/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -118,7 +118,7 @@ label {
 	font-weight: bold;
 }
 
-input[type=text] {
+input[type=text], input[type=password] {
 	color: #353535;
 	font-size: 1.4em;
 	width: 100%;</diff>
      <filename>app/views/sitemaps/show.css.erb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,9 @@ class &lt;%= class_name %&gt; &lt; ActiveRecord::Migration
       t.string :name
       t.string :description
       t.string :xml_location
-      
+      t.string :username
+      t.string :password
+    
       t.timestamps
     end
     </diff>
      <filename>generators/sitemap_migration/templates/migration.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>99b38f5f3a8d7e6be6431774d1937c871bb000d4</id>
    </parent>
  </parents>
  <author>
    <name>Josh Owens</name>
    <email>joshua.owens@gmail.com</email>
  </author>
  <url>http://github.com/queso/sitemap/commit/49e55bf5fd7ec04f9e3a0c5c459d9e2d1040c251</url>
  <id>49e55bf5fd7ec04f9e3a0c5c459d9e2d1040c251</id>
  <committed-date>2008-10-22T21:45:09-07:00</committed-date>
  <authored-date>2008-10-22T21:45:09-07:00</authored-date>
  <message>Adding password support to the sitemap plugin.</message>
  <tree>3cc6fcf18d71d9731ff401b13349cc2a224507e0</tree>
  <committer>
    <name>Josh Owens</name>
    <email>joshua.owens@gmail.com</email>
  </committer>
</commit>
