X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b300c03b9936c37ff488c0d2bb851061bfc8ac20..4e67530753b3de79c34be38cee8233da7d616574:/app/controllers/concerns/session_methods.rb?ds=sidebyside diff --git a/app/controllers/concerns/session_methods.rb b/app/controllers/concerns/session_methods.rb index fca851eeb..cebe932fc 100644 --- a/app/controllers/concerns/session_methods.rb +++ b/app/controllers/concerns/session_methods.rb @@ -62,9 +62,10 @@ module SessionMethods ## # def unconfirmed_login(user) - session[:token] = user.tokens.create.token + session[:pending_user] = user.id - redirect_to :controller => "confirmations", :action => "confirm", :display_name => user.display_name + redirect_to :controller => "confirmations", :action => "confirm", + :display_name => user.display_name, :referer => session[:referer] session.delete(:remember_me) session.delete(:referer)