Fix load user by oAuth.

Fix #1625.
Merge pull request #1628 from kayue/patch-21

Fix load user by oAuth.