Sha256: a1dfc894157fbbe5eb4334bc349d718fdd5fd5e92e25a18297c64dcbc8670df2

Contents?: true

Size: 707 Bytes

Versions: 33

Compression:

Stored size: 707 Bytes

Contents

# frozen_string_literal: true

namespace :eac_users_support do
  desc <<~DESCRIPTION
    Reseta a senha do usuário e permite setá-lo como administrador.

    Exemplos:

      # Reseta a senha do usuário "fulano@example.com" para "fulano@example.com".
      bin/rake eac_users_support:password_reset[fulano@example.com]

      # Reseta a senha do usuário "fulano@example.com" para "fulano@example.com"
      # e seta-o como administrador.
      bin/rake eac_users_support:password_reset[fulano@example.com,1]
  DESCRIPTION
  task :password_reset, %i[email administrator] => :environment do |_t, args|
    ::EacUsersSupport::Tasks::PasswordReset.new(args.email, args.administrator.present?).run
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
eac_users_support-0.7.1 lib/tasks/eac_users_support.rake
eac_users_support-0.7.0 lib/tasks/eac_users_support.rake
eac_users_support-0.6.1 lib/tasks/eac_users_support.rake
eac_users_support-0.6.0 lib/tasks/eac_users_support.rake
eac_users_support-0.5.1 lib/tasks/eac_users_support.rake
eac_users_support-0.5.0 lib/tasks/eac_users_support.rake
eac_users_support-0.4.0 lib/tasks/eac_users_support.rake
eac_users_support-0.3.4 lib/tasks/eac_users_support.rake
eac_users_support-0.3.3 lib/tasks/eac_users_support.rake
eac_users_support-0.3.2 lib/tasks/eac_users_support.rake
eac_users_support-0.3.1 lib/tasks/eac_users_support.rake
eac_users_support-0.3.0 lib/tasks/eac_users_support.rake
eac_users_support-0.2.3 lib/tasks/eac_users_support.rake