diff --git a/mind3rd/API/classes/MindUser.php b/mind3rd/API/classes/MindUser.php index 1bdb84c..74488f3 100755 --- a/mind3rd/API/classes/MindUser.php +++ b/mind3rd/API/classes/MindUser.php @@ -13,7 +13,7 @@ class MindUser { static protected $dbConn = false; - static protected $validAttrs = Array('name', 'email', 'pwd'); + static protected $validAttrs = Array('name', 'email', 'pwd', 'status', 'type'); static protected $adminValidAttrs = Array('status', 'type'); protected static function hash($pwd) @@ -31,8 +31,10 @@ class MindUser return false; } } - if(!\in_array($attr, self::$validAttrs)) + if(!\in_array($attr, self::$validAttrs)){ + \Mind::write('invalidCreateParams'); return false; + } if($attr == 'pwd') $value= self::hash($value); diff --git a/mind3rd/API/programs/Set.php b/mind3rd/API/programs/Set.php index c938b18..4b128a5 100755 --- a/mind3rd/API/programs/Set.php +++ b/mind3rd/API/programs/Set.php @@ -60,7 +60,7 @@ \MindUser::set($property, $this->value); } }else{ - \MindUser::set($property, $this->value); + } /*if($this->whose == 'user') {