fix forget passwd issue.

We fixed the reset passwd flow. Please review the fix. Thanks

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/zensh/jsgen/62)
<!-- Reviewable:end -->