<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -18,7 +18,7 @@ class SessionsController &lt; ApplicationController
       flash[:notice] = &quot;Logged in successfully&quot;
     else
       flash[:error] = &quot;The username and password did not match&quot;
-      render :action =&gt; 'new'
+      render :action =&gt; 'new', :status =&gt; 403
     end
   end
 </diff>
      <filename>app/controllers/sessions_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,9 +25,9 @@ describe SessionsController do
         post :create, :login =&gt; 'quentin', :password =&gt; 'bad password'
       end
 
-      it 'fails login and does not redirect' do
+      it 'fails login and responds with a 403 [forbidden]' do
         session[:user_id].should be_nil
-        response.should be_success
+        response.response_code.should == 403
       end
 
       it &quot;notifies the user that the login is incorrect&quot; do</diff>
      <filename>spec/controllers/sessions_controller_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>816fb69b34cc1bfdaef8a83eff3ae6b892053727</id>
    </parent>
  </parents>
  <author>
    <name>Brian Takita</name>
    <email>brian.takita@gmail.com</email>
  </author>
  <url>http://github.com/btakita/pain-point/commit/61cee117305d446c2f9c51f3a45d4a3f08c5375e</url>
  <id>61cee117305d446c2f9c51f3a45d4a3f08c5375e</id>
  <committed-date>2008-05-28T14:12:38-07:00</committed-date>
  <authored-date>2008-05-28T14:12:38-07:00</authored-date>
  <message>SessionsController#create responds with a 403 if the login fails.</message>
  <tree>612611881e780814cee9dca8a36c32f3825ce50c</tree>
  <committer>
    <name>Brian Takita</name>
    <email>brian.takita@gmail.com</email>
  </committer>
</commit>
