From d7db63c1eb50b02c58ce62ebc1326f841e1b4e4c Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:07:29 +0300 Subject: [PATCH] Fixed validation system links --- automation/validation.php | 2 +- automation/validation_email.php | 2 +- install.md | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/automation/validation.php b/automation/validation.php index c5a0542..1645cc3 100644 --- a/automation/validation.php +++ b/automation/validation.php @@ -51,7 +51,7 @@ // Send reminder email $to = $registrant_email; $subject = 'Contact Information Validation Reminder'; - $link = $config['registrar_url']."validate?token=$token"; + $link = $config['registrar_url']."index.php?m=validation&token=".$token; $message = "Dear Registrant,\n\nThis is a reminder to validate your contact information for the domain $domain_name. Please click the following link to validate your information:\n\n$link\n\nIf you have already validated your information, please disregard this message.\n\nSincerely,\nThe Registrar"; send_email($to, $subject, $message, $config); diff --git a/automation/validation_email.php b/automation/validation_email.php index a6761e0..09346dc 100644 --- a/automation/validation_email.php +++ b/automation/validation_email.php @@ -41,7 +41,7 @@ // Send email with validation link $to = $row['email']; $subject = 'Namingo Registrar Validation Link'; - $link = $config['registrar_url']."validate?token=$token"; + $link = $config['registrar_url']."index.php?m=validation&token=".$token; $message = "Please click the following link to validate your contact information:\n\n$link"; send_email($to, $subject, $message, $config); } diff --git a/install.md b/install.md index fc998fe..6230395 100644 --- a/install.md +++ b/install.md @@ -295,7 +295,9 @@ Once you have successfully configured all automation scripts, you are ready to i ```bash git clone https://github.com/getnamingo/whmcs-validation -mv whmcs-validation/Validation /var/www/modules/ +mv whmcs-validation/validation /var/www/html/whmcs/modules/addons +chown -R www-data:www-data /var/www/html/whmcs/modules/addons/validation +chmod -R 755 /var/www/html/whmcs/modules/addons/validation ``` - Go to Extensions > Overview in the admin panel and activate "Domain Contact Verification".