Sha256: 3dc8593c9807e28a71e18eaff9b474190a61a35285666845e84fe7f4407dc8c7

Contents?: true

Size: 491 Bytes

Versions: 99

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Verifications
    module PostalLetter
      # A form object that just holds a verification code that the user will
      # have received by postal letter.
      class ConfirmationForm < AuthorizationHandler
        attribute :verification_code, String

        validates :verification_code, presence: true

        def verification_metadata
          { "verification_code" => verification_code }
        end
      end
    end
  end
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
decidim-verifications-0.29.1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.28.4 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.27.9 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.29.0 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.28.3 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.27.8 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.29.0.rc4 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.29.0.rc3 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.29.0.rc2 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.29.0.rc1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.28.2 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.27.7 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.28.1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.27.6 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.26.10 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.26.9 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.28.0 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.27.5 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.28.0.rc5 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.28.0.rc4 app/forms/decidim/verifications/postal_letter/confirmation_form.rb