diff --git a/lib/registration.rb b/lib/registration.rb index bdf13020aedca21147facbb33cd9a44faec1b92e..143e5fbae676322512fe9ebbf326ca7a8f8c8bc6 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -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