aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2007-11-06 15:50:54 +0000
committerfrancis <francis>2007-11-06 15:50:54 +0000
commit470ba974b6ae06d502cc7b96c5b45de059041f8f (patch)
tree6b3fce65170a55dbbc598ad09a943838670f3e73 /app/controllers/user_controller.rb
parent39b35a39736d476d32624cb9db1ec19cb6d412b1 (diff)
Fill in reason parameters everywhere required.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r--app/controllers/user_controller.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
index 5089c3cf8..d490fae07 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.11 2007-11-05 16:46:10 francis Exp $
+# $Id: user_controller.rb,v 1.12 2007-11-06 15:50:58 francis Exp $
class UserController < ApplicationController
# XXX See controllers/application.rb simplify_url_part for reverse of expression in SQL below
@@ -16,7 +16,12 @@ class UserController < ApplicationController
def signin
# The explict signin link uses this to store where it is to go back to
if params[:r]
- @post_redirect = PostRedirect.new(:uri => params[:r], :post_params => {})
+ @post_redirect = PostRedirect.new(:uri => params[:r], :post_params => {},
+ :reason_params => {
+ :web => "Please sign in or make a new account.",
+ :email => "Then your can sign in to GovernmentSpy.",
+ :email_subject => "Confirm your account on GovernmentSpy"
+ })
@post_redirect.save!
params[:token] = @post_redirect.token
else
@@ -66,7 +71,7 @@ class UserController < ApplicationController
# Show the form
render :action => 'signup'
else
- # Unconfirmed user
+ # New unconfirmed user
@user.email_confirmed = false
@user.save