aboutsummaryrefslogtreecommitdiffstats
path: root/models/login.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-24 01:08:22 +0800
committerUnknwon <u@gogs.io>2016-07-24 01:08:22 +0800
commit1f2e173a745da8e4b57f96b5561a3c10054d3b76 (patch)
tree367f0f07e4fe1269ac0772e0561a4bf912b5153c /models/login.go
parent46e96c008cf966428c9dad71c7871de88186e3fe (diff)
downloadgitea-1f2e173a745da8e4b57f96b5561a3c10054d3b76.tar.gz
gitea-1f2e173a745da8e4b57f96b5561a3c10054d3b76.zip
Refactor User.Id to User.ID
Diffstat (limited to 'models/login.go')
-rw-r--r--models/login.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/login.go b/models/login.go
index 84a5c21916..1f8d3c8daf 100644
--- a/models/login.go
+++ b/models/login.go
@@ -534,7 +534,7 @@ func UserSignIn(uname, passwd string) (*User, error) {
return u, nil
}
- return nil, ErrUserNotExist{u.Id, u.Name}
+ return nil, ErrUserNotExist{u.ID, u.Name}
default:
var source LoginSource
@@ -563,5 +563,5 @@ func UserSignIn(uname, passwd string) (*User, error) {
log.Warn("Failed to login '%s' via '%s': %v", uname, source.Name, err)
}
- return nil, ErrUserNotExist{u.Id, u.Name}
+ return nil, ErrUserNotExist{u.ID, u.Name}
}