diff options
author | francis <francis> | 2008-03-21 14:50:04 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-21 14:50:04 +0000 |
commit | f84c8015be05b3c48a6f232fc5026f656237560f (patch) | |
tree | 8b82c8fb31b311d43c8cd2612a8dd07fd0bbadba /app/controllers/user_controller.rb | |
parent | 3420235ea23b34e40b5f5d7dd7690cfb7544a8b8 (diff) |
Better named variable.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index c95029c99..72651305f 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.41 2008-03-21 14:45:38 francis Exp $ +# $Id: user_controller.rb,v 1.42 2008-03-21 14:50:04 francis Exp $ class UserController < ApplicationController # Show page about a set of users with same url name @@ -109,11 +109,11 @@ class UserController < ApplicationController def signchange if @user and ((not session[:user_circumstance]) or (session[:user_circumstance] != "change_password")) # Not logged in via email, so send confirmation - params[:submitted_signchange_email] = true + params[:submitted_signchange_send_confirm] = true params[:signchange] = { :email => @user.email } end - if params[:submitted_signchange_email] + if params[:submitted_signchange_send_confirm] # They've entered the email, check it is OK and user exists if not MySociety::Validate.is_valid_email(params[:signchange][:email]) flash[:error] = "That doesn't look like a valid email address. Please check you have typed it correctly." |