summaryrefslogtreecommitdiff
path: root/app/controllers/unlocks_controller.rb
blob: dc858fca543bd8fcc85974769f626887af2ef089 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class UnlocksController < Devise::UnlocksController
  def create
    flash[:notice] = 'An account unlock message will be sent to that email, if it exists.'
    UnlockAccountJob.perform_later(resource_params.to_json)
    respond_with({}, location: after_sending_unlock_instructions_path_for(resource_class))
  end
end