Skip to content

Commit

Permalink
fix(login): error handling when failed to prepare for an expired flow (
Browse files Browse the repository at this point in the history
…ory#2120)

Signed-off-by: sawadashota <[email protected]>
  • Loading branch information
sawadashota authored Jan 10, 2022
1 parent 26d192b commit e028c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfservice/flow/login/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (s *ErrorHandler) WriteFlowError(w http.ResponseWriter, r *http.Request, f
}

if expired, inner := s.PrepareReplacementForExpiredFlow(w, r, f, err); inner != nil {
s.WriteFlowError(w, r, f, group, err)
s.WriteFlowError(w, r, f, group, inner)
return
} else if expired != nil {
if f.Type == flow.TypeAPI || x.IsJSONRequest(r) {
Expand Down

0 comments on commit e028c0b

Please sign in to comment.