mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Fixed return value not defined + version bumped
This commit is contained in:
parent
9dcce639c1
commit
c40bb2bf6c
4 changed files with 10 additions and 13 deletions
|
|
@ -8,7 +8,7 @@
|
|||
#%define _datadir %{_datarootdir}
|
||||
#%define _docdir %{_datadir}/doc
|
||||
|
||||
%define build_number 11
|
||||
%define build_number 12
|
||||
#%if %{build_number}
|
||||
#%define build_number_ext -%{build_number}
|
||||
#%endif
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ define ("ALGO_NOT_SUPPORTED", "ERROR_ALGO_NOT_SUPPORTED");
|
|||
|
||||
define ("ACCOUNT_ALREADY_ACTIVATED", "ERROR_ACCOUNT_ALREADY_ACTIVATED");
|
||||
define ("ACCOUNT_NOT_YET_ACTIVATED", "ERROR_ACCOUNT_NOT_ACTIVATED");
|
||||
define ("ACCOUNT_RECOVERY_IMPOSSIBLE", "ERROR_CANT_RECOVER_ACCOUNT");
|
||||
|
||||
/* Format error */
|
||||
|
||||
|
|
|
|||
|
|
@ -103,13 +103,11 @@ function xmlrpc_create_email_account($method, $args) {
|
|||
//need username + domain
|
||||
|
||||
//We call this function to set the geoloc if enabled
|
||||
if(ENABLE_NEW_ACCOUNTS_GEOLOC){
|
||||
if (ENABLE_NEW_ACCOUNTS_GEOLOC){
|
||||
return update_account_user_info($account->username, $hashed_password, NULL, NULL, "unknown", '0', $account->domain, $algo);
|
||||
}
|
||||
else {
|
||||
return OK;
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
// args = [username, email, md5_hash, sha256_hash, useragent, [domain]], return OK
|
||||
|
|
@ -189,12 +187,11 @@ function xmlrpc_create_email_md5_sha256_account($method, $args) {
|
|||
//We call this function to set the geoloc if enabled
|
||||
// args needed = [username, ha1, firstname, lastname, gender, subscribe, [domain], [algo]]
|
||||
//need username + domain
|
||||
if(ENABLE_NEW_ACCOUNTS_GEOLOC){
|
||||
if (ENABLE_NEW_ACCOUNTS_GEOLOC){
|
||||
return update_account_user_info($account->username, $md5_hash, NULL, NULL, "unknown", '0', $account->domain, MD5);
|
||||
}
|
||||
else {
|
||||
return OK;
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
// args = [username, key, [domain], [algo]]
|
||||
|
|
|
|||
|
|
@ -139,9 +139,8 @@ function xmlrpc_create_phone_account($method, $args) {
|
|||
if (ENABLE_NEW_ACCOUNTS_GEOLOC){
|
||||
return update_account_user_info($account->username, $hashed_password, NULL, NULL, "unknown", '0', $account->domain, $algo);
|
||||
}
|
||||
else {
|
||||
return OK;
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
// args = [phone, username, key, [domain], [algo]]
|
||||
|
|
@ -396,7 +395,7 @@ function xmlrpc_get_phone_number_for_account($method, $args) {
|
|||
return ACCOUNT_NOT_FOUND;
|
||||
}
|
||||
|
||||
return $phone;
|
||||
return $phone;
|
||||
}
|
||||
|
||||
function xmlrpc_accounts_phone_register_methods($server) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue