From 33b5a67b34c6a6be7b97b9e9a85ce0036b75be67 Mon Sep 17 00:00:00 2001 From: Atomys Date: Sat, 2 Jul 2022 01:19:25 +0200 Subject: [PATCH] fix: missing oauth type (#162) --- internal/webhooks/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/webhooks/user.go b/internal/webhooks/user.go index c7c609dc..a8baf637 100644 --- a/internal/webhooks/user.go +++ b/internal/webhooks/user.go @@ -17,6 +17,7 @@ type userProcessor struct { func (p *userProcessor) Create(u *duoapi.User, metadata *duoapi.WebhookMetadata) error { accountID, err := p.db.Account.Create(). + SetType(string(typesgen.AccountTypeOauth)). SetProvider(string(typesgen.ProviderDuo)). SetProviderAccountID(strconv.Itoa(u.ID)). SetUsername(u.Login).