Skip to content

Instantly share code, notes, and snippets.

@lorenadl
lorenadl / add_password_expiration_to_devise.md
Last active October 27, 2023 07:35
[RoR] Add password expiration feature to Devise

Add password expiration feature to Devise

Assuming you already have a Devise model named User and you want to add following Devise Security Extension to it:

  • Password Expirable
  • Password Archivable
  • Session Limitable

Add gem and run the generator