Skip to content

Commit eebb506

Browse files
committed
code: fix typo in recovery flow comment
Signed-off-by: SAY-5 <say.apm35@gmail.com>
1 parent d402f82 commit eebb506

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

selfservice/strategy/code/strategy_recovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (s *Strategy) Recover(w http.ResponseWriter, r *http.Request, f *recovery.F
181181
WithRequest(r).
182182
Debugf("A recovery flow with `DangerousSkipCSRFCheck` set has been submitted, skipping anti-CSRF measures.")
183183
} else if err := flow.EnsureCSRF(s.deps, r, f.Type, s.deps.Config().DisableAPIFlowEnforcement(ctx), s.deps.GenerateCSRFToken, body.CSRFToken); err != nil {
184-
// If a CSRF violation occurs the flow is most likely FUBAR, as the user either lost the CSRF token, or an attack occured.
184+
// If a CSRF violation occurs the flow is most likely FUBAR, as the user either lost the CSRF token, or an attack occurred.
185185
// In this case, we just issue a new flow and "abandon" the old flow.
186186
return s.retryRecoveryFlow(w, r, flow.TypeBrowser, RetryWithError(err))
187187
}

0 commit comments

Comments
 (0)