diff --git a/src/misc/email.php b/src/misc/email.php index 31737db..a3b6be9 100644 --- a/src/misc/email.php +++ b/src/misc/email.php @@ -98,7 +98,7 @@ function send_email_with_recover_key($email, $key) { $body_html = str_replace("%key%", $key, EMAIL_RECOVERY_BODY_HTML); Logger::getInstance()->debug("[EMAIL] Recovery html body is " . $body_html); - send_email($email, EMAIL_ACTIVATION_SUBJECT, $body, $body_html); + send_email($email, EMAIL_RECOVERY_SUBJECT, $body, $body_html); Logger::getInstance()->message("[EMAIL] Email sent to email " . $email . " to recover the account"); } diff --git a/src/xmlrpc/accounts.php b/src/xmlrpc/accounts.php index 593de39..4ce001e 100644 --- a/src/xmlrpc/accounts.php +++ b/src/xmlrpc/accounts.php @@ -665,7 +665,7 @@ function xmlrpc_recover_email_account($method, $args) { $db = $database->getConnection(); $account = new Account($db); - $account->username = $user; + $account->username = $username; $account->domain = $domain; if (!$account->getOne()) {