module Authpwn::Expires
Common code for credentials that expire.
Public Instance Methods
expired?()
click to toggle source
True if this password is too old and should not be used for authentication.
# File lib/authpwn_rails/expires.rb, line 17 def expired? return false unless expires_after updated_at < Time.current - expires_after end