I have a simple password change popup based on
Accounts.setPassword(userId, newPassword, [options])
However, I need to implement an IT policy
- at least one uppercase and lowercase character
- at least a non-alphanumeric character
- different from past 2 passwords
And I need to force a password change every 30 days.
How do I implement hooks in the Account package to do all that without monkey-patching the Account package ?