~singpolyma/sgx-jmp

f7426ddbb8ec92afcdc7d193a10e4cbbf3d038e3 — Stephen Paul Weber 1 year, 1 month ago 691c8b9
Allow prev from invite code
1 files changed, 3 insertions(+), 1 deletions(-)

M lib/registration.rb
M lib/registration.rb => lib/registration.rb +3 -1
@@ 353,12 353,14 @@ class Registration

			def write
				Command.reply { |reply|
					reply.allowed_actions = [:next]
					reply.allowed_actions = [:next, :prev]
					add_form(reply)
				}.then(&method(:parse))
			end

			def parse(iq)
				return Activation.for(@customer, @tel).then(&:write) if iq.prev?

				guard_too_many_tries.then {
					verify(iq.form.field("code")&.value&.to_s)
				}.then {