added support to login user oauth user by email only (#6330)

* added support to login user oauth user by email only

* added sql handler

* fixed model method name from GetUserByEmail to GetUserByEmailQuery

* fixed variable declaration typo
This commit is contained in:
Eric Uldall authored and Torkel Ödegaard committed 2016-10-20 06:45:10 +02:00
1 parent 9badb051ba
commit eda442dbf9
3 files changed
+28 -1

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ func OAuthLogin(ctx *middleware.Context) {
return
}
userQuery := m.GetUserByLoginQuery{LoginOrEmail: userInfo.Email}
userQuery := m.GetUserByEmailQuery{Email: userInfo.Email}
err = bus.Dispatch(&userQuery)
// create account if missing