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
2016-10-20 06:45:10 +02:00
committed by Torkel Ödegaard
parent 9badb051ba
commit eda442dbf9
3 changed files with 28 additions and 1 deletions
+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