Skip to content

Commit 11791e5

Browse files
committed
fixup! Move UpdateExternalUser to externalaccount
1 parent b51c09c commit 11791e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/externalaccount/link.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ import (
1212
"github.com/markbates/goth"
1313
)
1414

15+
// Store represents a thing that stores things
1516
type Store interface {
1617
Get(interface{}) interface{}
1718
Set(interface{}, interface{}) error
1819
Release() error
1920
}
2021

22+
// LinkAccountFromStore links the provided user with a stored external user
2123
func LinkAccountFromStore(store Store, user *models.User) error {
2224
gothUser := store.Get("linkAccountGothUser")
2325
if gothUser == nil {

0 commit comments

Comments
 (0)