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

Fixed return value not defined + version bumped

parent 9dcce639
Pipeline #9346 passed with stages
in 30 seconds
......@@ -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) {
......
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