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:
1 parent
9badb051ba
commit
eda442dbf9
3 files changed
+28
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user