33 lines
612 B
Ruby
33 lines
612 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Users::UnlocksController < Devise::UnlocksController
|
|
skip_after_action :verify_authorized
|
|
skip_after_action :verify_policy_scoped
|
|
|
|
# GET /resource/unlock/new
|
|
def new
|
|
super
|
|
end
|
|
|
|
# POST /resource/unlock
|
|
def create
|
|
super
|
|
end
|
|
|
|
# GET /resource/unlock?unlock_token=abcdef
|
|
def show
|
|
super
|
|
end
|
|
|
|
protected
|
|
|
|
# The path used after sending unlock password instructions
|
|
def after_sending_unlock_instructions_path_for(_resource)
|
|
super
|
|
end
|
|
|
|
# The path used after unlocking the resource
|
|
def after_unlock_path_for(_resource)
|
|
super
|
|
end
|
|
end
|