mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Fixed recovert account from confirmation key
This commit is contained in:
parent
3c99551f40
commit
2d117daaf1
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue