@@ -338,7 +338,7 @@ class Registration
reply.note_type = :info
reply.note_text = "#{toob.desc}: #{toob.url}"
}.then do |iq|
- next Activation.for(@customer, @tel).then(&:write) if iq.prev?
+ next Activation.for(@customer, nil, @tel).then(&:write) if iq.prev?
CreditCard.for(@customer, @tel, finish: @finish).then(&:write)
end
@@ -432,7 +432,7 @@ class Registration
end
def parse(iq)
- return Activation.for(@customer, @tel).then(&:write) if iq.prev?
+ return Activation.for(@customer, nil, @tel).then(&:write) if iq.prev?
guard_too_many_tries.then {
verify(iq.form.field("code")&.value&.to_s)
@@ -505,7 +505,7 @@ class Registration
}.then { |iq|
raise "Action not allowed" unless iq.prev?
- Activation.for(@customer, @tel).then(&:write)
+ Activation.for(@customer, nil, @tel).then(&:write)
}
end
end