diff options
Diffstat (limited to 'models/user_openid.go')
-rw-r--r-- | models/user_openid.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user_openid.go b/models/user_openid.go index 49edc1db21..503c2a52d1 100644 --- a/models/user_openid.go +++ b/models/user_openid.go @@ -111,8 +111,8 @@ func GetUserByOpenID(uri string) (*User, error) { log.Trace("Normalized OpenID URI: " + uri) // Otherwise, check in openid table - oid := &UserOpenID{URI: uri} - has, err := x.Get(oid) + oid := &UserOpenID{} + has, err := x.Where("uri=?", uri).Get(oid) if err != nil { return nil, err } |