Browse Source

update user.last_login_on before every requests

pull/317/head
qyzh 4 years ago
parent
commit
0f776c5cdb
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/controllers/application_controller.rb

+ 3
- 1
app/controllers/application_controller.rb View File

@@ -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"


Loading…
Cancel
Save