feat(oauth): support password reset from OAuth flows

This patch will allow you to continue an OAuth sign-in after initiating the password reset flow.

It doesn't include functional tests yet, as per #1187.

Fixes #981.