Commit eae267e2 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed double alias creation for phone accounts

parent 6bbff3f6
Pipeline #7531 passed with stage
in 13 seconds
......@@ -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);
}
......
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