diff --git a/selfservice/flow/verification/flow.go b/selfservice/flow/verification/flow.go index c2a29d0a9480..2729104b3be3 100644 --- a/selfservice/flow/verification/flow.go +++ b/selfservice/flow/verification/flow.go @@ -182,10 +182,10 @@ 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() if err != nil { return nil, err } + f.TransientPayload = original.GetTransientPayload() requestURL, err := url.ParseRequestURI(original.GetRequestURL()) if err != nil { requestURL = new(url.URL)