]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/sessions_controller.rb
Use Bootstrap actionable items in changeset lists
[rails.git] / app / controllers / sessions_controller.rb
index 3c2084a5b82ee4cd39223d4a623abe4b4d82c715..e57ffc06aac0617b65100bc5fe1dab3b9ecbda2e 100644 (file)
@@ -27,12 +27,7 @@ class SessionsController < ApplicationController
     @title = t ".title"
 
     if request.post?
-      if session[:token]
-        token = UserToken.find_by(:token => session[:token])
-        token&.destroy
-        session.delete(:token)
-      end
-
+      session.delete(:pending_user)
       session.delete(:user)
       session_expires_automatically