I have a client who was the sole admin, whose server was not sending out email, and lost his password. I have in the past dealt with such problems in Wordpress by using an md5 hash generator to encrypt a new password and just paste it into the password field in the database, but couch uses its own hash generator, correct?

So what I did was edited the Couch "PasswordHash.php" "CheckPassword" function to simply return equal temporary passwords, logged in and then reset the password using the normal dialogue. I then of course changed the edited function back to the original code.

This worked, but is there a simpler or better way?