From 151ab55dbb15a6bbdc323990f1a4b0d925322d50 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 29 May 2019 22:24:22 +0800 Subject: [PATCH] 1 --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 535a75b6..dd1f5967 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -225,7 +225,7 @@ class ApplicationController < ActionController::Base elsif params[:authToken] user = Token.find_by_value(params[:authToken]).user set_autologin_cookie(user) - session[:user_id] = user.id + start_user_session(user) end end if user.nil? && Setting.rest_api_enabled? && accept_api_auth?