Skip to content

Commit

Permalink
fix: missing oauth type (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
42atomys committed Jul 1, 2022
1 parent 02b801b commit 33b5a67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/webhooks/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 33b5a67

Please sign in to comment.