Skip to content

Commit

Permalink
Fix imports and merged code
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama committed Jul 30, 2024
1 parent 9c48408 commit 418b36e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/auth/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"github.com/gravitational/teleport/lib/auth/native"
"github.com/gravitational/teleport/lib/defaults"
dtconfig "github.com/gravitational/teleport/lib/devicetrust/config"
"github.com/gravitational/teleport/lib/events"
"github.com/gravitational/teleport/lib/jwt"
"github.com/gravitational/teleport/lib/modules"
"github.com/gravitational/teleport/lib/services"
Expand Down Expand Up @@ -262,10 +261,10 @@ func (a *Server) newWebSession(
// will be marked with the web session private key policy.
webAttData, err := services.NewWebSessionAttestationData(req.PrivateKey.Public())
if err != nil {
return nil, trace.Wrap(err)
return nil, nil, trace.Wrap(err)
}
if err = a.UpsertKeyAttestationData(ctx, webAttData, sessionTTL); err != nil {
return nil, trace.Wrap(err)
return nil, nil, trace.Wrap(err)
}
}

Expand Down

0 comments on commit 418b36e

Please sign in to comment.