lib/rodauth/features/account_expiration.rb in rodauth-1.23.0 vs lib/rodauth/features/account_expiration.rb in rodauth-2.0.0

- old
+ new

@@ -67,10 +67,15 @@ redirect account_expiration_redirect end update_last_login end + def update_session + check_account_expiration + super + end + private def before_reset_password check_account_expiration super if defined?(super) @@ -92,14 +97,9 @@ end def after_close_account super if defined?(super) account_activity_ds(account_id).delete - end - - def update_session - check_account_expiration - super end def account_activity_ds(account_id) db[account_activity_table]. where(account_activity_id_column=>account_id)