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.13.0 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.12.1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.13.0.pre1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.12.0 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.11.2 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.12.0.pre app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.11.1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.11.0.pre1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.10.1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.10.0 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.9.3 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.9.2 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.9.1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.9.0 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.8.4 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.8.3 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.8.2 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.8.1 app/forms/decidim/verifications/postal_letter/confirmation_form.rb
decidim-verifications-0.8.0 app/forms/decidim/verifications/postal_letter/confirmation_form.rb