Added domain confirmation verification url

This commit is contained in:
Priit Tark 2015-05-15 10:00:04 +03:00
parent 8b392fcc56
commit 6821afff65
8 changed files with 33 additions and 7 deletions

View file

@ -0,0 +1,16 @@
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