Use $attributes array

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-09-14 13:52:57 +01:00
parent 18ff810d7e
commit dcae5503c8

View file

@ -9,8 +9,7 @@ class SCIMUser extends User
protected $throwValidationExceptions = true; // we want model-level validation to fully THROW, not just return false protected $throwValidationExceptions = true; // we want model-level validation to fully THROW, not just return false
public function __construct(array $attributes = []) { public function __construct(array $attributes = []) {
$this->noPassword(); $attributes['password'] = $this->noPassword();
parent::__construct($attributes); parent::__construct($attributes);
} }
} }