Fix bug creating verified user accounts
This commit is contained in:
parent
24db155ebd
commit
771daeffdf
@ -21,7 +21,7 @@
|
|||||||
$CONFIG['verify_email'] = false;
|
$CONFIG['verify_email'] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($CONFIG['verify_email'] === true) {
|
if($CONFIG['verify_email'] == true) {
|
||||||
$saved_code = file_get_contents(sys_get_temp_dir()."/".$username);
|
$saved_code = file_get_contents(sys_get_temp_dir()."/".$username);
|
||||||
if((strcmp(trim($code), trim($saved_code))) !== 0) {
|
if((strcmp(trim($code), trim($saved_code))) !== 0) {
|
||||||
echo "Code does not match. Try again.<br />";
|
echo "Code does not match. Try again.<br />";
|
||||||
|
@ -178,7 +178,7 @@ $mail->send();
|
|||||||
echo 'Please enter the code from the email below:<br />';
|
echo 'Please enter the code from the email below:<br />';
|
||||||
}
|
}
|
||||||
echo '<form name="create1" method="post" action="create.php">';
|
echo '<form name="create1" method="post" action="create.php">';
|
||||||
if($CONFIG['verify_email'] === true) {
|
if($CONFIG['verify_email'] == true) {
|
||||||
echo '<input name="code" type="text" id="code"> ';
|
echo '<input name="code" type="text" id="code"> ';
|
||||||
}
|
}
|
||||||
echo '<input name="username" type="hidden" id="username" value="'.$username.'" readonly="readonly">';
|
echo '<input name="username" type="hidden" id="username" value="'.$username.'" readonly="readonly">';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user