Sha256: e455b59b1979ada344f665181a631c712e0ab318c59f315bab9461557117c952

Contents?: true

Size: 381 Bytes

Versions: 25

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class ResendConfirmationInstructions < Decidim::Command
    def initialize(user)
      @user = user
      @unconfirmed_email = user.unconfirmed_email
    end

    def call
      return broadcast(:invalid) unless @unconfirmed_email

      ResendConfirmationInstructionsJob.perform_later(@user)

      broadcast(:ok)
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-core-0.27.2 app/commands/decidim/resend_confirmation_instructions.rb
decidim-core-0.27.1 app/commands/decidim/resend_confirmation_instructions.rb
decidim-core-0.27.0 app/commands/decidim/resend_confirmation_instructions.rb
decidim-core-0.27.0.rc2 app/commands/decidim/resend_confirmation_instructions.rb
decidim-core-0.27.0.rc1 app/commands/decidim/resend_confirmation_instructions.rb