forked from Trustie/forgeplus
Merge remote-tracking branch 'origin/dev_osredm_server' into dev_osredm_server
This commit is contained in:
commit
62c8a4a6a0
|
|
@ -337,6 +337,8 @@ class AccountsController < ApplicationController
|
|||
session[:"#{default_yun_session}"] = user.id
|
||||
UserOnline.login(user.id)
|
||||
Rails.logger.info("#########_____session_default_yun_session__________###############{default_yun_session}")
|
||||
# 清除登录错误次数
|
||||
user.reset_login_times!
|
||||
# 注册完成后有一天的试用申请(先去掉)
|
||||
# UserDayCertification.create(user_id: user.id, status: 1)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@ module LoginHelper
|
|||
|
||||
UserAction.create(action_id: user&.id, action_type: 'Login', user_id: user&.id, ip: request.remote_ip)
|
||||
user.update_column(:last_login_on, Time.now)
|
||||
# 清除登录错误次数
|
||||
user.reset_login_times!
|
||||
# 注册完成后有一天的试用申请(先去掉)
|
||||
# UserDayCertification.create(user_id: user.id, status: 1)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
json.array! users do |user|
|
||||
json.username user.full_name
|
||||
json.login user.login
|
||||
json.phone user.phone
|
||||
# json.phone user.phone
|
||||
json.user_id user.id
|
||||
json.mail user.mail
|
||||
# json.phone user.phone.present? ? "#{user.phone[0..2]}****#{user.phone[-4..-1]}" : ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue