aboutsummaryrefslogtreecommitdiffstats
path: root/services/externalaccount
diff options
context:
space:
mode:
Diffstat (limited to 'services/externalaccount')
-rw-r--r--services/externalaccount/user.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/externalaccount/user.go b/services/externalaccount/user.go
index e43b3ca7c5..c11499d765 100644
--- a/services/externalaccount/user.go
+++ b/services/externalaccount/user.go
@@ -9,13 +9,14 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/login"
+ user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/structs"
"github.com/markbates/goth"
)
// LinkAccountToUser link the gothUser to the user
-func LinkAccountToUser(user *models.User, gothUser goth.User) error {
+func LinkAccountToUser(user *user_model.User, gothUser goth.User) error {
loginSource, err := login.GetActiveOAuth2LoginSourceByName(gothUser.Provider)
if err != nil {
return err