internetee-registry/app/controllers/registrant/domain_update_confirms_controller.rb
2015-05-15 10:00:04 +03:00

16 lines
421 B
Ruby

class Registrant::DomainUpdateConfirmsController < RegistrantController
skip_before_action :authenticate_user!, only: [:show, :create]
skip_authorization_check only: [:show, :create]
def show
@domain = Domain.find(params[:id])
if @domain.present? && params[:token].present? && @domain.registrant_verification_token == params[:token]
else
@domain = nil
end
end
def create
end
end