mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
6756dd193e
Cleaning up routes to match laravel-scim-server's recommended implementation Some actually *working* changes for SCIM support?! Whoops, forgot my route file Fix public SCIM routes Removed Ziggy, removed old generated file, yanked Ziggy references Resolves the first set of comments for SCIM Ensure all /api routes have baseUrl prepended Fix the parent:: call to be, uh, actually correct :P Clarify the route-ordering, as it is quite tricky This gets it so that users can actually be saved.. Work around the lack of callbacks with some inheritance Mapped a bunch more fields from SCIM into Snipe-IT's user table More baseUrl shenanigans since we yanked Ziggy :/ Properly map job title and work with some other necessary attributes Map more fields... Finalized basic mapping for core and enterprise namespaces Latest tuned settings for SCIM config to work with Azure (and others)
16 lines
414 B
PHP
16 lines
414 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class SCIMUser extends User
|
|
{
|
|
protected $table = 'users';
|
|
|
|
protected $throwValidationExceptions = true; // we want model-level validation to fully THROW, not just return false
|
|
|
|
public function __construct(array $attributes = []) {
|
|
$attributes['password'] = "*NO PASSWORD*";
|
|
// $attributes['activated'] = 1;
|
|
parent::__construct($attributes);
|
|
}
|
|
} |