Return, rather than allow a second render to happen. Closes #1407
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 14 Dec 2008 23:16:27 +0000 (23:16 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 14 Dec 2008 23:16:27 +0000 (23:16 +0000)
app/controllers/user_controller.rb

index 825c9263582c8f66076cb891c495ef39610f3e3c..7ebe6b6b6f7af8ddcbe3404b3f2b99f64a38b45f 100644 (file)
@@ -124,6 +124,7 @@ class UserController < ApplicationController
       else
         redirect_to :controller => 'site', :action => 'index'
       end
+      return
     end
     @title = 'login'
     if params[:user]