Commit 2d117daa authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed recovert account from confirmation key

parent 3c99551f
Pipeline #9319 passed with stage
in 1 minute and 1 second
...@@ -120,6 +120,18 @@ function xmlrpc_recover_account_from_confirmation_key($method, $args) { ...@@ -120,6 +120,18 @@ function xmlrpc_recover_account_from_confirmation_key($method, $args) {
return $result; return $result;
} }
// If not found, try without algo
$password2 = new Password($db);
$password2->account_id = $account->id;
if ($password2->getOne()) {
$result = array(
"password" => $password2->password,
"algorithm" => $password2->algorithm
);
return $result;
}
return PASSWORD_NOT_FOUND; return PASSWORD_NOT_FOUND;
} }
......
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