fix infinite loop in request_password
Merge pull request #496 from rpedroso/reset_password_infinite_loop

fix infinite loop in request_password