summaryrefslogtreecommitdiffstats
path: root/services/externalaccount
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-11-28 22:11:58 +0800
committerGitHub <noreply@github.com>2021-11-28 22:11:58 +0800
commit9defddb2862aa0a54da21328ca091284291363f7 (patch)
tree1126670579198f00d89c8a4f0240aa7d99995eb8 /services/externalaccount
parentb1df89095163d8ce3eecfeb855e7f03f17b473c4 (diff)
downloadgitea-9defddb2862aa0a54da21328ca091284291363f7.tar.gz
gitea-9defddb2862aa0a54da21328ca091284291363f7.zip
Move more model into models/user (#17826)
* Move more model into models/user * Remove unnecessary comment Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'services/externalaccount')
-rw-r--r--services/externalaccount/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/externalaccount/user.go b/services/externalaccount/user.go
index c11499d765..f7280e90e4 100644
--- a/services/externalaccount/user.go
+++ b/services/externalaccount/user.go
@@ -22,7 +22,7 @@ func LinkAccountToUser(user *user_model.User, gothUser goth.User) error {
return err
}
- externalLoginUser := &models.ExternalLoginUser{
+ externalLoginUser := &user_model.ExternalLoginUser{
ExternalID: gothUser.UserID,
UserID: user.ID,
LoginSourceID: loginSource.ID,
@@ -42,7 +42,7 @@ func LinkAccountToUser(user *user_model.User, gothUser goth.User) error {
ExpiresAt: gothUser.ExpiresAt,
}
- if err := models.LinkExternalToUser(user, externalLoginUser); err != nil {
+ if err := user_model.LinkExternalToUser(user, externalLoginUser); err != nil {
return err
}