Enable Oauth login for existing regular users

王权利请求将github/fork/godric7/master合并到master

Created by: godric7

User were not searched by email on auth request as described in issue #1620

Code was borrowed from function find_for_ldap_auth a few lines above.

合并请求报告