From 8b1f06f010955242fbe54785250181431083db38 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:58:46 +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 1df30532d..c70f053f6 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? && current_user.logged? + if params[:token].present? @user = User.try_to_autologin(params[:token]) if @user.present? @code = 1000