From dcae5503c86ac7072a8affc8d058be2430798aae Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 14 Sep 2023 13:52:57 +0100 Subject: [PATCH] Use $attributes array Signed-off-by: snipe --- app/Models/SCIMUser.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Models/SCIMUser.php b/app/Models/SCIMUser.php index 97258a6e9..fcf34c0d5 100644 --- a/app/Models/SCIMUser.php +++ b/app/Models/SCIMUser.php @@ -9,8 +9,7 @@ class SCIMUser extends User protected $throwValidationExceptions = true; // we want model-level validation to fully THROW, not just return false public function __construct(array $attributes = []) { - $this->noPassword(); + $attributes['password'] = $this->noPassword(); parent::__construct($attributes); - } } \ No newline at end of file