Hi all, I am having some trouble invalidating user passwords every 60 days on my postgres database:
CREATE RULE user_expiration AS ON UPDATE TO users DO INSTEAD UPDATE user SET user_expires = user_expires + '60'
This will work every time the user changes their password, however it also works every time any update is issued on the records. How can I ensure that it only updates on the change password event?