修改错误

This commit is contained in:
sylor_huang@126.com 2020-04-15 11:26:25 +08:00
parent 1331561bea
commit ad4fdf477f
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class AccountsController < ApplicationController
cookies[autologin_cookie_name] = cookie_options
Rails.logger.info("cookies is #{cookies}")
UserAction.create(:action_id => @user.try(:id), :action_type => "Login", :user_id => @user.try(:id), :ip => request.remote_ip)
user.update_column(:last_login_on, Time.now)
@user.update_column(:last_login_on, Time.now)
session[:"#{default_yun_session}"] = @user.id
# successful_authentication(@user)
render_ok({user: {id: @user.id, token: @user.gitea_token}})