Skip to content

Commit

Permalink
fix: transient_payload is not passed to email verification message as…
Browse files Browse the repository at this point in the history
… a result of registration flow (PS-368)
  • Loading branch information
splaunov committed Jul 3, 2024
1 parent 1a70648 commit bb5f075
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfservice/flow/verification/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ func FromOldFlow(conf *config.Config, exp time.Duration, csrf string, r *http.Re

func NewPostHookFlow(conf *config.Config, exp time.Duration, csrf string, r *http.Request, strategy Strategy, original flow.Flow) (*Flow, error) {
f, err := NewFlow(conf, exp, csrf, r, strategy, original.GetType())
f.TransientPayload = original.GetTransientPayload()

Check warning

Code scanning / CodeQL

Missing error check Warning

f
may be nil at this dereference because
err
may not have been checked.
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bb5f075

Please sign in to comment.