Skip to content

Commit

Permalink
fix: passcode invalid error not shown (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoern-m authored Aug 26, 2024
1 parent 7c6030f commit e72c112
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func (a WebauthnVerifyAssertionResponse) Execute(c flowpilot.ExecutionContext) e
return fmt.Errorf("could not create audit log: %w", err)
}

return c.Error(shared.ErrorPasskeyInvalid.Wrap(err))
c.SetFlowError(shared.ErrorPasskeyInvalid.Wrap(err))

return c.Continue(shared.StateError)
}

return fmt.Errorf("failed to verify assertion response: %w", err)
Expand Down

0 comments on commit e72c112

Please sign in to comment.