From c668fd3530b538d9debf3767a7c7b4f75afa9ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cxxq250=E2=80=9D?= <“xxq250@qq.com”> Date: Wed, 12 Oct 2022 15:38:40 +0800 Subject: [PATCH] =?UTF-8?q?cloudIDE=20saas=E5=AE=9A=E5=88=B6api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index c70f053f6..1df30532d 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -113,7 +113,7 @@ class UsersController < ApplicationController def info @code = 1001 @message = "用户不存在" - if params[:token].present? + if params[:token].present? && current_user.logged? @user = User.try_to_autologin(params[:token]) if @user.present? @code = 1000