Fixed recovert account from confirmation key

This commit is contained in:
Sylvain Berfini 2019-11-07 13:41:08 +01:00
parent 3c99551f40
commit 2d117daaf1

View file

@ -120,6 +120,18 @@ function xmlrpc_recover_account_from_confirmation_key($method, $args) {
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;
}