1
Hello, I want the registration process making password protected. Only people who know the password can complete the registration.
First i've added an extra field in /include/registerform.php:
$reg_form->addElement(new XoopsFormText(Code, "code", 26, 25), true);
And then i've added a line in register.php (after 'function userCheck')
if ($code != 12345) { die("wrong code"); }
I've also added the variable '$code' in the function userCheck. So it look like this:
function userCheck($uname, $email, $pass, $vpass, $code)
{
//added by me
if ($code != 12345) { die("wrong code"); }
//added by me
global $xoopsConfigUser;
$xoopsDB =& Database::getInstance();
$myts =& MyTextSanitizer::getInstance();
But it wont work
Anyone got an idea??