-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LG-882 Invalid physical mail address #2775
Changes from all commits
15e2d5e
78eee71
e9ba21a
9a1297d
02a2104
0581859
6e49a6d
3b0f036
643145b
76ff3c2
504952a
0cf60cc
cebbc7a
275bdee
8c1e009
343b90a
bb44bcb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module Idv | ||
module Steps | ||
class DocAuthBaseStep < Flow::BaseStep | ||
def initialize(context) | ||
def initialize(flow) | ||
@assure_id = nil | ||
super(context, :doc_auth) | ||
super(flow, :doc_auth) | ||
end | ||
|
||
private | ||
|
@@ -27,7 +27,18 @@ def simulate? | |
Figaro.env.acuant_simulator == 'true' | ||
end | ||
|
||
delegate :idv_session, to: :@context | ||
def attempter | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This diff is pretty heavy. I think including changes like this, which aren't totally necessary for the change on the table in a separate PR would help slim things down and make this easier to review in the future. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You said you would not approve it without the throttling. |
||
@attempter ||= Idv::Attempter.new(current_user) | ||
end | ||
|
||
def idv_failure(result) | ||
attempter.increment | ||
type = attempter.exceeded? ? :fail : :warning | ||
redirect_to idv_session_failure_url(reason: type) | ||
result | ||
end | ||
|
||
delegate :idv_session, to: :@flow | ||
end | ||
end | ||
end |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This controller has gotten to almost 160 lines, which to me looks like a signal that some of this should be moved into a service