Fix bug creating verified user accounts

This commit is contained in:
Retro_Guy 2020-12-02 01:50:39 -07:00
parent 24db155ebd
commit 771daeffdf
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
$CONFIG['verify_email'] = false;
}
}
if($CONFIG['verify_email'] === true) {
if($CONFIG['verify_email'] == true) {
$saved_code = file_get_contents(sys_get_temp_dir()."/".$username);
if((strcmp(trim($code), trim($saved_code))) !== 0) {
echo "Code does not match. Try again.<br />";

View File

@ -178,7 +178,7 @@ $mail->send();
echo 'Please enter the code from the email below:<br />';
}
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">&nbsp;';
}
echo '<input name="username" type="hidden" id="username" value="'.$username.'" readonly="readonly">';