Fix error in email authentication link

This commit is contained in:
Luan Luciano 2022-06-27 07:59:30 -03:00 committed by GitHub
parent c2cdf5f3bf
commit 2c050dae1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ if (isset($_GET['authenticate']) && $config['mailserver']['myaccount_verify_emai
$verify_account_id = (int)$session_user_id; $verify_account_id = (int)$session_user_id;
$user = mysql_select_single("SELECT `id`, `activekey`, `active_email` FROM `znote_accounts` WHERE `account_id`='{$verify_account_id}' LIMIT 1;"); $user = mysql_select_single("SELECT `id`, `activekey`, `active_email` FROM `znote_accounts` WHERE `account_id`='{$verify_account_id}' LIMIT 1;");
if ($user !== false) { if ($user !== false) {
$thisurl = config('site_url') . "myaccount.php"; $thisurl = config('site_url') . "/myaccount.php";
$thisurl .= "?authenticate&u=".$verify_account_id."&k=".$user['activekey']; $thisurl .= "?authenticate&u=".$verify_account_id."&k=".$user['activekey'];
$mailer = new Mail($config['mailserver']); $mailer = new Mail($config['mailserver']);