<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,21 +8,11 @@ class UserSessionsController &lt; ApplicationController
   
   def create
     @user_session = UserSession.new(params[:user_session])
-    # We are saving with a block to accomodate for OpenID authentication
-    # If you are not using OpenID you can save without a block:
-    #
-    #   if @user_session.save
-    #     # ... successful login
-    #   else
-    #     # ... unsuccessful login
-    #   end
-    @user_session.save do |result|
-      if result
-        flash[:notice] = &quot;Login successful!&quot;
-        redirect_back_or_default account_url
-      else
-        render :action =&gt; :new
-      end
+    if @user_session.save
+      flash[:notice] = &quot;Login successful!&quot;
+      redirect_back_or_default account_url
+    else
+      render :action =&gt; :new
     end
   end
   </diff>
      <filename>app/controllers/user_sessions_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,28 +1,3 @@
 class User &lt; ActiveRecord::Base
-  # ALL of the following code is for OpenID integration. If you are not using OpenID in your app
-  # just remove all of the following code, to the point where you User class is completely blank.
-  acts_as_authentic :login_field_validation_options =&gt; {:if =&gt; :openid_identifier_blank?}, :password_field_validation_options =&gt; {:if =&gt; :openid_identifier_blank?}
-  
-  validate :normalize_openid_identifier
-  validates_uniqueness_of :openid_identifier, :allow_blank =&gt; true
-  validates_length_of :email, :minimum =&gt; 500, :unless =&gt; &quot;true&quot;
-  
-  # For acts_as_authentic configuration
-  def openid_identifier_blank?
-    openid_identifier.blank?
-  end
-  
-  def deliver_password_reset_instructions!
-    reset_perishable_token!
-    Notifier.deliver_password_reset_instructions(self)
-  end
-  
-  private
-    def normalize_openid_identifier
-      begin
-        self.openid_identifier = OpenIdAuthentication.normalize_url(openid_identifier) if !openid_identifier.blank?
-      rescue OpenIdAuthentication::InvalidOpenId =&gt; e
-        errors.add(:openid_identifier, e.message)
-      end
-    end
+  acts_as_authentic
 end</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,7 +21,6 @@
 &lt;% if !current_user %&gt;
   &lt;%= link_to &quot;Register&quot;, new_account_path %&gt; |
   &lt;%= link_to &quot;Log In&quot;, new_user_session_path %&gt; |
-  &lt;%= link_to &quot;Forgot password&quot;, new_password_reset_path %&gt;
 &lt;% else %&gt;
   &lt;%= link_to &quot;My Account&quot;, account_path %&gt; |
   &lt;%= link_to &quot;Logout&quot;, user_session_path, :method =&gt; :delete, :confirm =&gt; &quot;Are you sure you want to logout?&quot; %&gt;</diff>
      <filename>app/views/layouts/application.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -2,23 +2,11 @@
 
 &lt;% form_for @user_session, :url =&gt; user_session_path do |f| %&gt;
   &lt;%= f.error_messages %&gt;
-  &lt;div id=&quot;login_container&quot;&lt;% unless @user_session.openid_identifier.blank? %&gt; style=&quot;display: none;&quot;&lt;% end %&gt;&gt;
-    &lt;%= f.label :login %&gt; (or &lt;%= link_to_function &quot;login using OpenID&quot;, &quot;$('login_container').toggle(); $('openid_container').toggle();&quot; %&gt;)&lt;br /&gt;
-    &lt;%= f.text_field :login %&gt;&lt;br /&gt;
-    &lt;br /&gt;
-    &lt;%= f.label :password %&gt;&lt;br /&gt;
-    &lt;%= f.password_field :password %&gt;&lt;br /&gt;
-  &lt;/div&gt;
-  &lt;!--
-    Notice the following is for OpenID. If you are not implementing OpenID in your app, simply remove the following &lt;div&gt; block.
-    Also, notice the &lt;div id=&quot;login_container&quot;&gt; above, those fields do not need to be wrapped in a &lt;div&gt;, you can remove that as well.
-    I apologize if this makes it a little confusing, I have been building this app with a number of tutorials and one of them has been
-    OpenID integration.
-  --&gt;
-  &lt;div id=&quot;openid_container&quot;&lt;% if @user_session.openid_identifier.blank? %&gt; style=&quot;display: none;&quot;&lt;% end %&gt;&gt;
-    &lt;%= f.label :openid_identifier, &quot;OpenID&quot; %&gt; (or &lt;%= link_to_function &quot;login using a standard username / password&quot;, &quot;$('login_container').toggle(); $('openid_container').toggle();&quot; %&gt;)&lt;br /&gt;&lt;br /&gt;
-    &lt;%= f.text_field :openid_identifier %&gt;&lt;br /&gt;
-  &lt;/div&gt;
+  &lt;%= f.label :login %&gt;&lt;br /&gt;
+  &lt;%= f.text_field :login %&gt;&lt;br /&gt;
+  &lt;br /&gt;
+  &lt;%= f.label :password %&gt;&lt;br /&gt;
+  &lt;%= f.password_field :password %&gt;&lt;br /&gt;
   &lt;br /&gt;
   &lt;%= f.check_box :remember_me %&gt;&lt;%= f.label :remember_me %&gt;&lt;br /&gt;
   &lt;br /&gt;</diff>
      <filename>app/views/user_sessions/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -6,14 +6,4 @@
 &lt;br /&gt;
 &lt;%= form.label :password_confirmation %&gt;&lt;br /&gt;
 &lt;%= form.password_field :password_confirmation %&gt;&lt;br /&gt;
-&lt;br /&gt;
-&lt;!--
-  The following is for OpenID integration, if you are not using OpenID in your app
-  simple remove the :openid_identifier label and field
---&gt;
-&lt;%= form.label :openid_identifier, &quot;Or use OpenID instead of a standard login / password&quot; %&gt;&lt;br /&gt;
-&lt;%= form.text_field :openid_identifier %&gt;&lt;br /&gt;
-&lt;br /&gt;
-&lt;%= form.label :email %&gt;&lt;br /&gt;
-&lt;%= form.text_field :email %&gt;&lt;br /&gt;
 &lt;br /&gt;
\ No newline at end of file</diff>
      <filename>app/views/users/_form.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,21 +1,6 @@
-&lt;!--
-  The following is for OpenID, if you are not using OpenID in your app remove
-  the OpenID if statement and field below.
---&gt;
-&lt;% if @user.openid_identifier.blank? %&gt;
-  &lt;p&gt;
-    &lt;b&gt;Login:&lt;/b&gt;
-    &lt;%=h @user.login %&gt;
-  &lt;/p&gt;
-&lt;% else %&gt;
-  &lt;p&gt;
-    &lt;b&gt;OpenID:&lt;/b&gt;
-    &lt;%=h @user.openid_identifier %&gt;
-  &lt;/p&gt;
-&lt;% end %&gt;
 &lt;p&gt;
-  &lt;b&gt;Email:&lt;/b&gt;
-  &lt;%=h @user.email %&gt;
+  &lt;b&gt;Login:&lt;/b&gt;
+  &lt;%=h @user.login %&gt;
 &lt;/p&gt;
 
 &lt;p&gt;</diff>
      <filename>app/views/users/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,5 @@
 ActionController::Routing::Routes.draw do |map|
   map.resource :account, :controller =&gt; &quot;users&quot;
-  map.resources :password_resets
   map.resources :users
   map.resource :user_session
   map.root :controller =&gt; &quot;user_sessions&quot;, :action =&gt; &quot;new&quot;</diff>
      <filename>config/routes.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/controllers/password_resets_controller.rb</filename>
    </removed>
    <removed>
      <filename>app/models/notifier.rb</filename>
    </removed>
    <removed>
      <filename>app/views/notifier/password_reset_instructions.erb</filename>
    </removed>
    <removed>
      <filename>db/migrate/20081116172851_add_users_password_reset_fields.rb</filename>
    </removed>
    <removed>
      <filename>db/migrate/20081119233359_add_users_openid_field.rb</filename>
    </removed>
    <removed>
      <filename>db/migrate/20081120163933_create_openid_tables.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/CHANGELOG</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/README</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/Rakefile</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/generators/open_id_authentication_tables/templates/migration.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/templates/migration.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/init.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/lib/open_id_authentication.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/lib/open_id_authentication/association.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/lib/open_id_authentication/mem_cache_store.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/lib/open_id_authentication/request.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/tasks/open_id_authentication_tasks.rake</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/test/mem_cache_store_test.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/test/normalize_test.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/test/open_id_authentication_test.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/test/status_test.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/open_id_authentication/test/test_helper.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>32eaec9f48827d85d7ce062a330302f11e626997</id>
    </parent>
  </parents>
  <author>
    <name>binarylogic</name>
    <email>bjohnson@binarylogic.com</email>
  </author>
  <url>http://github.com/binarylogic/authlogic_example/commit/d1cf131a86d578041e8f58b0caafbda3ab499d71</url>
  <id>d1cf131a86d578041e8f58b0caafbda3ab499d71</id>
  <committed-date>2008-12-11T20:43:59-08:00</committed-date>
  <authored-date>2008-12-11T20:43:59-08:00</authored-date>
  <message>Removed all password resets and openid code and put them in their own branch</message>
  <tree>1eda82ab3dbd7979f7325bda4ea5e7ef24c8c7db</tree>
  <committer>
    <name>binarylogic</name>
    <email>bjohnson@binarylogic.com</email>
  </committer>
</commit>
