I am working on a project that requires the creation of users that will be able to access parts of a website by logging in via the front end. The user account should auto expire after a certain amount of days.
Any ideas on how to implement that feature with Kirby?
Thanks. This could be a straightforward solution but I guess it will just behave as if the user account never existed once it expires. It would be nice to be able to give a custom message e.g.“Your account has expired”.
In Kirby 3.2 you can createuser models, so you could in fact override the login method in your model and then act depending on the value stored in the user’s expiry field.