Skip to content

Commit

Permalink
chore: fix redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Mar 25, 2024
1 parent 151f092 commit eaf8fd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions selfservice/flow/login/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ func (e *HookExecutor) PostLoginHook(
}
finalReturnTo = rt
span.SetAttributes(attribute.String("return_to", rt), attribute.String("redirect_reason", "oauth2 login challenge"))
} else if f.ReturnToVerification != "" {
finalReturnTo = f.ReturnToVerification
span.SetAttributes(attribute.String("redirect_reason", "verification requested"))
}

x.ContentNegotiationRedirection(w, r, s, e.d.Writer(), finalReturnTo)
Expand Down

0 comments on commit eaf8fd4

Please sign in to comment.