Creating a short-term passwords

Hi there, a bit of a strange request but I would like to be able to provide people with a short-term password to a locked page for my site that would expire after a set time. Is this something that’s possible?

You could set an expiry date in the user file and in your login logic validate not only the password but also the expiry time.

I really like this idea thanks!