This is a great code by the way... Just what I was looking for.
Has anyone got the class working for password resets. I can see there is a password reset function in the class, but wondered how it could be implemented to email the user with a code to make a reset???