<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,14 @@
 # modified user.rb
-acts_as_authentic :login_field_validation_options =&gt; { :if =&gt; :openid_identifier_blank? },
-                  :password_field_validation_options =&gt; { :if =&gt; :openid_identifier_blank? },
-                  :password_field_validates_length_of_options =&gt; { :on =&gt; :update, :if =&gt; :has_no_credentials? }
+# For authlogic 2.0+
+acts_as_authentic do |c|
+  c.validates_length_of_password_field_options = {:on =&gt; :update, :minimum =&gt; 4, :if =&gt; :has_no_credentials?}
+  c.validates_length_of_password_confirmation_field_options = {:on =&gt; :update, :minimum =&gt; 4, :if =&gt; :has_no_credentials?}
+end
+
+# Pre-authlogic 2.0
+# acts_as_authentic :login_field_validation_options =&gt; { :if =&gt; :openid_identifier_blank? },
+#                   :password_field_validation_options =&gt; { :if =&gt; :openid_identifier_blank? },
+#                   :password_field_validates_length_of_options =&gt; { :on =&gt; :update, :if =&gt; :has_no_credentials? }
 
 # ...
 # we need to make sure that either a password or openid gets set</diff>
      <filename>17.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d7ce36fcee4ac4fa23c16c4d422aba6e13ff0b8c</id>
    </parent>
  </parents>
  <author>
    <name>Matt Hooks</name>
    <email>matthooks@gmail.com</email>
  </author>
  <url>http://github.com/matthooks/authlogic-activation-tutorial/commit/5174f3dff9de17317e1c62a5ca6917945685daf1</url>
  <id>5174f3dff9de17317e1c62a5ca6917945685daf1</id>
  <committed-date>2009-04-02T13:06:34-07:00</committed-date>
  <authored-date>2009-04-02T13:06:34-07:00</authored-date>
  <message>Updated for authlogic 2.0, thanks sshefer</message>
  <tree>0278e838b160e56b80ea7161fbdc6c5ca1a9c032</tree>
  <committer>
    <name>Matt Hooks</name>
    <email>matthooks@gmail.com</email>
  </committer>
</commit>
