Small fix

This commit is contained in:
Sylvain Berfini 2019-08-21 12:04:39 +02:00
parent 967104b103
commit 47dc4e7068
2 changed files with 2 additions and 2 deletions

View file

@ -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");
}

View file

@ -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()) {