fix (auth): event verify error (#4302)

pull/4305/head
Jim 2 years ago committed by GitHub
parent 4e812e73cb
commit a61993abd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -186,7 +186,11 @@ func Verify(ctx context.Context, opt ...Option) (ret VerifyResults) {
v.ctx = ctx
ea := &event.Auth{}
defer event.WriteAudit(ctx, op, event.WithAuth(ea))
defer func() {
if err := event.WriteAudit(ctx, op, event.WithAuth(ea)); err != nil {
event.WriteError(ctx, op, err)
}
}()
opts := getOpts(opt...)

Loading…
Cancel
Save