flow/flow.go
Method Flow.HandleLoginRequest
has 6 return statements (exceeds 4 allowed). Open
Open
func (f *Flow) HandleLoginRequest(h *HandledLoginRequest) error {
if f.LoginWasUsed {
return errors.WithStack(x.ErrConflict.WithHint("The login request was already used and can no longer be changed."))
}
Method Flow.HandleConsentRequest
has 5 return statements (exceeds 4 allowed). Open
Open
func (f *Flow) HandleConsentRequest(r *AcceptOAuth2ConsentRequest) error {
if time.Time(r.HandledAt).IsZero() {
return errors.New("refusing to handle a consent request with null HandledAt")
}