fixed 增加自动登录,gitea注册

This commit is contained in:
xiaoxiaoqiong 2022-05-24 15:24:15 +08:00
parent ebe5fad7dd
commit 94166a363c
1 changed files with 1 additions and 1 deletions

View File

@ -26,4 +26,4 @@ json.super_description @user.super_description
json.(@user, :show_email, :show_department, :show_location, :show_super_description)
json.message_unread_total @message_unread_total
json.has_trace_user @user.trace_user.present?
json.is_new params[:login].to_s.include?("#{@user.login}")
json.is_new @user.login.present? && params[:login].to_s.include?("#{@user.login}")