Commit 47dc4e70 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Small fix

parent 967104b1
Pipeline #7402 passed with stage
in 34 seconds
......@@ -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");
}
......
......@@ -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()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment