diff --git a/htdocs/user/class/api_users.class.php b/htdocs/user/class/api_users.class.php index 784a61d5fa8..f5f0b73a70f 100644 --- a/htdocs/user/class/api_users.class.php +++ b/htdocs/user/class/api_users.class.php @@ -312,7 +312,6 @@ class Users extends DolibarrApi if (in_array($field, array('pass_crypted', 'pass_indatabase', 'pass_indatabase_crypted', 'pass_temp', 'api_key'))) { // This properties can't be set/modified with API throw new RestException(401, 'The property '.$field." can't be set/modified using the APIs"); - continue; } /*if ($field == 'pass') { if (empty(DolibarrApiAccess::$user->rights->user->user->password)) { @@ -366,7 +365,6 @@ class Users extends DolibarrApi if (in_array($field, array('pass_crypted', 'pass_indatabase', 'pass_indatabase_crypted', 'pass_temp', 'api_key'))) { // This properties can't be set/modified with API throw new RestException(401, 'The property '.$field." can't be set/modified using the APIs"); - continue; } if ($field == 'pass') { if ($this->useraccount->id != DolibarrApiAccess::$user->id && empty(DolibarrApiAccess::$user->rights->user->user->password)) {