Sha256: bca83ed9ddaef67ac60de362890e5dbad77664706078339c2e24f265083a6522
Contents?: true
Size: 553 Bytes
Versions: 23
Compression:
Stored size: 553 Bytes
Contents
Warden::Manager.after_authentication do |user, auth, opts| MnoEnterprise::EventLogger.info('user_login', user.id, "User login", user.email, user) if user end Warden::Manager.before_logout do |user, auth, opts| # Determine whether it's a sign out or timeout if auth.env['PATH_INFO'] =~ %r{^/auth/users/sign_out.json$} MnoEnterprise::EventLogger.info('user_logout', user.id, "User logout", user.email, user) if user else MnoEnterprise::EventLogger.info('user_timeout', user.id, "User session expired", user.email, user) if user end end
Version data entries
23 entries across 23 versions & 1 rubygems