From d9a0b34cb8a7115afca4f7c5d1904ee043d46ac6 Mon Sep 17 00:00:00 2001 From: zhangxunhui Date: Mon, 30 Jan 2023 21:35:22 +0800 Subject: [PATCH] comment user.current --- app/controllers/application_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fd6f1c74..1c87e117 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -95,8 +95,8 @@ class ApplicationController < ActionController::Base elsif type.to_i == 3 && user_exist tip_exception(-2, "该手机号码或邮箱已绑定") end - render_ok - end + render_okr + # end # 发送及记录激活码 # 发送验证码:type 1:注册手机验证码 2:找回密码手机验证码 3:找回密码邮箱验证码 4:绑定手机 5:绑定邮箱 @@ -367,7 +367,7 @@ class ApplicationController < ActionController::Base # RSS key authentication does not start a session User.find_by_rss_key(params[:key]) end - User.current = User.find(2) # need to remove this statement before running in production + # User.current = User.find(2) # need to remove this statement before running in production end def user_trace_log