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.11.0 lib/tasks/eac_users_support.rake
eac_users_support-0.10.1 lib/tasks/eac_users_support.rake
eac_users_support-0.10.0 lib/tasks/eac_users_support.rake
eac_users_support-0.9.8 lib/tasks/eac_users_support.rake
eac_users_support-0.9.7 lib/tasks/eac_users_support.rake
eac_users_support-0.9.6 lib/tasks/eac_users_support.rake
eac_users_support-0.9.5 lib/tasks/eac_users_support.rake
eac_users_support-0.9.4 lib/tasks/eac_users_support.rake
eac_users_support-0.9.3 lib/tasks/eac_users_support.rake
eac_users_support-0.9.2 lib/tasks/eac_users_support.rake
eac_users_support-0.9.1 lib/tasks/eac_users_support.rake
eac_users_support-0.9.0 lib/tasks/eac_users_support.rake
eac_users_support-0.8.7 lib/tasks/eac_users_support.rake
eac_users_support-0.8.6 lib/tasks/eac_users_support.rake
eac_users_support-0.8.5 lib/tasks/eac_users_support.rake
eac_users_support-0.8.4 lib/tasks/eac_users_support.rake
eac_users_support-0.8.3 lib/tasks/eac_users_support.rake
eac_users_support-0.8.2 lib/tasks/eac_users_support.rake
eac_users_support-0.8.1 lib/tasks/eac_users_support.rake
eac_users_support-0.8.0 lib/tasks/eac_users_support.rake