update user.last_login_on before every requests

This commit is contained in:
qyzh 2021-12-24 15:25:14 +08:00
parent fc3f50a2bf
commit 0f776c5cdb
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ class ApplicationController < ActionController::Base
if request.subdomain === 'testforgeplus' || request.subdomain === "profiler" if request.subdomain === 'testforgeplus' || request.subdomain === "profiler"
Rack::MiniProfiler.authorize_request Rack::MiniProfiler.authorize_request
end end
end end
before_action :update_last_login_on
DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z) DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z)
OPENKEY = "79e33abd4b6588941ab7622aed1e67e8" OPENKEY = "79e33abd4b6588941ab7622aed1e67e8"