diff options
author | francis <francis> | 2008-01-10 18:20:35 +0000 |
---|---|---|
committer | francis <francis> | 2008-01-10 18:20:35 +0000 |
commit | 68af5db3f31dbce06cd1703680735f8cf7c2a444 (patch) | |
tree | 1f6e429fd9d4c67bd123ca890b0a4ff5c48777c8 /app/controllers/user_controller.rb | |
parent | 1487224806c51dc3c8c52a134d896e0e8adc77b5 (diff) |
Don't say there is a registration form on the right in the case of logging in
to become a specific user, where there is no such form.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 222f60791..a8aa472c0 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user_controller.rb,v 1.22 2008-01-03 12:54:40 francis Exp $ +# $Id: user_controller.rb,v 1.23 2008-01-10 18:20:35 francis Exp $ class UserController < ApplicationController # XXX See controllers/application.rb simplify_url_part for reverse of expression in SQL below @@ -25,7 +25,7 @@ class UserController < ApplicationController render :action => 'sign' return else - @user_signin = User.authenticate_from_form(params[:user_signin]) + @user_signin = User.authenticate_from_form(params[:user_signin], @post_redirect.reason_params[:user_name] ? true : false) if @user_signin.errors.size > 0 # Failed to authenticate render :action => 'sign' |