Jump to content

About email verification challenge for newly register client


Recommended Posts

Hello,
Developer is this code is ok. What type of code is this?. file name verify-email.php . Upload directory WHMCS root.
About this file: users will not be able to access your website until they successfully verify their email address.

<?php
use WHMCS\ClientArea;
use WHMCS\Database\Capsule;

define('CLIENTAREA', true);
require __DIR__ . '/init.php';
$ca = new ClientArea();
$ca->setPageTitle('Verify Your Email To Continue.');
$ca->initPage();
$ca->assign('custompage', 'full');
$ca->setTemplate('verify-email');
$ca->output();

 

Link to comment
Share on other sites

  • 2 weeks later...

This code looks fine for a simple WHMCS custom page. It basically loads the WHMCS system, creates a client area page, sets the title, picks the verify email template, and then outputs it to the user. Just keep in mind that this file only displays the verification page, it doesn’t actually handle the email-verification process itself. That part is done by WHMCS in the backend.

If your goal is just to show a “Verify your email before continuing” screen, then this setup is correct.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated