Fixed double alias creation for phone accounts

This commit is contained in:
Sylvain Berfini 2019-08-28 15:39:50 +02:00
parent 6bbff3f6e1
commit eae267e264

View file

@ -112,11 +112,6 @@ function xmlrpc_create_phone_account($method, $args) {
$password->algorithm = $algo;
$password->create();
if ($user != $phone) {
$alias->account_id = $account->id;
$alias->create();
}
if (CUSTOM_HOOKS) {
hook_on_account_created($account);
}