mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-02-07 13:58:24 +00:00
Fixed issue with is_account_activated not answering for aliases
This commit is contained in:
parent
c40bb2bf6c
commit
16b82b88bc
2 changed files with 13 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
#%define _datadir %{_datarootdir}
|
||||
#%define _docdir %{_datadir}/doc
|
||||
|
||||
%define build_number 12
|
||||
%define build_number 13
|
||||
#%if %{build_number}
|
||||
#%define build_number_ext -%{build_number}
|
||||
#%endif
|
||||
|
|
|
|||
|
|
@ -74,7 +74,18 @@ function xmlrpc_is_account_activated($method, $args) {
|
|||
$account->domain = $domain;
|
||||
|
||||
if (!$account->getOne()) {
|
||||
return ACCOUNT_NOT_FOUND;
|
||||
$alias = new Alias($db);
|
||||
$alias->alias = $user;
|
||||
$alias->domain = $domain;
|
||||
|
||||
if ($alias->getOne()) {
|
||||
$account->id = $alias->account_id;
|
||||
if (!$account->getOne()) {
|
||||
return ACCOUNT_NOT_FOUND;
|
||||
}
|
||||
} else {
|
||||
return ACCOUNT_NOT_FOUND;
|
||||
}
|
||||
}
|
||||
|
||||
Logger::getInstance()->message("Account activation status is " . $account->activated);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue