]> git.openstreetmap.org Git - rails.git/commitdiff
Drop duplicate unconfirmed_login definition
authorTom Hughes <tom@compton.nu>
Sun, 24 Oct 2021 09:37:08 +0000 (10:37 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 24 Oct 2021 09:37:08 +0000 (10:37 +0100)
This allows third party logins to use the common definition from
the SessionMethods concern which specifies the controller.

app/controllers/users_controller.rb

index 42ac6ac11a15e05145d926611215bdaef3437dc4..38a61208c4635120ea9864a65dfd360728914baa 100644 (file)
@@ -341,17 +341,6 @@ class UsersController < ApplicationController
 
   private
 
-  ##
-  #
-  def unconfirmed_login(user)
-    session[:token] = user.tokens.create.token
-
-    redirect_to :action => "confirm", :display_name => user.display_name
-
-    session.delete(:remember_me)
-    session.delete(:referer)
-  end
-
   ##
   # update a user's details
   def update_user(user, params)