<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,3 @@
-* fix issue with accounts who added openid not being able to change their password
-
 events:
 * need to create user-less events even we don't find matching users, otherwise it gets weird whenever there's commits from non-registered gitorious users (or users commit from another email).
 - maybe save name+email in events table in that case, so we can hook them up to a user later if needed.</diff>
      <filename>TODO.txt</filename>
    </modified>
    <modified>
      <diff>@@ -56,5 +56,16 @@ describe AccountsController do
     User.authenticate(users(:johan).email, &quot;test&quot;).should == users(:johan)
     User.authenticate(users(:johan).email, &quot;fubar&quot;).should == nil
   end
+  
+  it &quot;should be able to update password, even if user is openid enabled&quot; do
+    user = users(:johan)
+    user.update_attribute(:identity_url, &quot;http://johan.someprovider.com/&quot;)
+    put :update_password, :user =&gt; {
+      :current_password =&gt; &quot;test&quot;, 
+      :password =&gt; &quot;fubar&quot;,
+      :password_confirmation =&gt; &quot;fubar&quot; }
+    flash[:notice].should match(/Your password has been changed/i)
+    User.authenticate(users(:johan).email, &quot;fubar&quot;).should == users(:johan)
+  end
 
 end</diff>
      <filename>spec/controllers/accounts_controller_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1313f28d3a69a50a0806bc1a46ad0060d39e5252</id>
    </parent>
  </parents>
  <author>
    <name>Johan S&#248;rensen</name>
    <email>johan@johansorensen.com</email>
  </author>
  <url>http://github.com/radar/scoot/commit/d4bf0ea1e7138ca4f6cf18ee7d0bc0f97416bc8f</url>
  <id>d4bf0ea1e7138ca4f6cf18ee7d0bc0f97416bc8f</id>
  <committed-date>2008-06-10T09:00:28-07:00</committed-date>
  <authored-date>2008-06-10T09:00:28-07:00</authored-date>
  <message>Changing password with a openid enabled account works fine after all</message>
  <tree>d91c2ee90473d9333c1c107f9a564830f7e7c9af</tree>
  <committer>
    <name>Johan S&#248;rensen</name>
    <email>johan@johansorensen.com</email>
  </committer>
</commit>
