summaryrefslogtreecommitdiffstats
path: root/models/user_openid.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user_openid.go')
-rw-r--r--models/user_openid.go4
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
}