From 0f776c5cdba9f0e293ad06cbc8eb9163ba2a3b1e Mon Sep 17 00:00:00 2001 From: qyzh Date: Fri, 24 Dec 2021 15:25:14 +0800 Subject: [PATCH] update user.last_login_on before every requests --- app/controllers/application_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7fd78bfa0..84d3ee9cd 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -26,7 +26,9 @@ class ApplicationController < ActionController::Base if request.subdomain === 'testforgeplus' || request.subdomain === "profiler" Rack::MiniProfiler.authorize_request 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) OPENKEY = "79e33abd4b6588941ab7622aed1e67e8"