<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,7 +30,7 @@ class ApplicationController &lt; ActionController::Base
         if current_user
             store_location
             flash[:notice] = 'You can\'t be logged in for that!'
-            redirect_to account_url
+            redirect_to profile_url
             return false
         end
     end</diff>
      <filename>app/controllers/application_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,8 @@
 class UserSessionsController &lt; ApplicationController
+
+    before_filter :require_user, :only =&gt; :destroy
+    before_filter :require_no_user, :only =&gt; [ :new, :create ]
+
     def new
         @user_session = UserSession.new
     end</diff>
      <filename>app/controllers/user_sessions_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6cfbbc548055d3bcac2c4e68e555189fc7914ec7</id>
    </parent>
  </parents>
  <author>
    <name>tweak</name>
    <email>tweakr@gmail.com</email>
  </author>
  <url>http://github.com/tweak/waxlog/commit/eccf71651c351602e8b7dc733c609148010d741a</url>
  <id>eccf71651c351602e8b7dc733c609148010d741a</id>
  <committed-date>2009-10-08T20:15:44-07:00</committed-date>
  <authored-date>2009-10-08T20:15:44-07:00</authored-date>
  <message>tweaked security logic around logging in and logging out</message>
  <tree>e7904f21cd57ed72e723fce67f7a03d4455c128b</tree>
  <committer>
    <name>tweak</name>
    <email>tweakr@gmail.com</email>
  </committer>
</commit>
