Sha256: 69e3de54e70f836d5914c80ab2a179c760feafa63b0fb7359b9c8388449d15fd
Contents?: true
Size: 319 Bytes
Versions: 1
Compression:
Stored size: 319 Bytes
Contents
Authenticate.lifecycle.after_set_user name: 'lifetimed after set_user', except: :authentication do |user, session, options| if user && user.respond_to?(:max_session_timedout?) throw(:failure, "Your session has reached it's maximum allowed lifetime, you must log in again") if user.max_session_timedout? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authenticate-0.1.0 | lib/authenticate/callbacks/lifetimed.rb |