Sha256: 033e15574ce2f2bfb369e364df73c464b2851060847d3abf841e67d416c4d2b4
Contents?: true
Size: 396 Bytes
Versions: 5
Compression:
Stored size: 396 Bytes
Contents
# Catch sessions that have been live for too long and kill them, forcing the user to reauthenticate. Authenticate.lifecycle.after_set_user name: 'lifetimed after set_user', except: :authentication do |user, session, options| if user && user.respond_to?(:max_session_lifetime_exceeded?) throw(:failure, I18n.t('callbacks.lifetimed.failure')) if user.max_session_lifetime_exceeded? end end
Version data entries
5 entries across 5 versions & 1 rubygems