mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Added domain confirmation verification url
This commit is contained in:
parent
8b392fcc56
commit
6821afff65
8 changed files with 33 additions and 7 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue