Skip to content

A free open source IT asset/license management system

Use $attributes array

snipedcae5503c86a
diff --git a/app/Models/SCIMUser.php b/app/Models/SCIMUser.php
index 97258a6e93..fcf34c0d5d 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