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-19 21:45:10 -07:00
committed by Torkel Ödegaard
parent 9badb051ba
commit eda442dbf9
3 changed files with 28 additions and 1 deletions

View File

@ -96,6 +96,11 @@ type GetUserByLoginQuery struct {
Result *User
}
type GetUserByEmailQuery struct {
Email string
Result *User
}
type GetUserByIdQuery struct {
Id int64
Result *User