diff options
author | francis <francis> | 2007-11-05 16:46:10 +0000 |
---|---|---|
committer | francis <francis> | 2007-11-05 16:46:10 +0000 |
commit | 39b35a39736d476d32624cb9db1ec19cb6d412b1 (patch) | |
tree | 87778fabb7a618ae7b9e29a90ff354d013c87e31 /app/controllers/application.rb | |
parent | 935fb0717b5bf1b4b5e5ac47fd5ca057a610c9b1 (diff) |
Confirmation email for login.
Diffstat (limited to 'app/controllers/application.rb')
-rw-r--r-- | app/controllers/application.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb index fb56497f4..cf5ca0db8 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: application.rb,v 1.22 2007-11-01 14:45:56 francis Exp $ +# $Id: application.rb,v 1.23 2007-11-05 16:46:10 francis Exp $ class ApplicationController < ActionController::Base @@ -19,9 +19,10 @@ class ApplicationController < ActionController::Base private # Check the user is logged in - def authenticated? + def authenticated?(reason_params) unless session[:user] - post_redirect = PostRedirect.new(:uri => request.request_uri, :post_params => params) + post_redirect = PostRedirect.new(:uri => request.request_uri, :post_params => params, + :reason_params => reason_params) post_redirect.save! redirect_to signin_url(:token => post_redirect.token) return false |