]> BookStack Code Mirror - bookstack/commit
Added user-create API endpoint
authorDan Brown <redacted>
Fri, 4 Feb 2022 00:26:19 +0000 (00:26 +0000)
committerDan Brown <redacted>
Fri, 4 Feb 2022 00:26:19 +0000 (00:26 +0000)
commiteb653bda16f2f1e82e5e0f0a047d63871f0b9389
treea17187a5076f78fc3ed1b5c861cb5bea85fdcb18
parent9e1c8ec82aa856d2f17a07b9f16e9e4cafe1e073
Added user-create API endpoint

- Required extracting logic into repo.
- Changed some existing creation paths to standardise behaviour.
- Added test to cover new endpoint.
- Added extra test for user delete to test migration.
- Changed how permission errors are thrown to ensure the right status
  code can be reported when handled in API.
12 files changed:
app/Auth/Access/Guards/LdapSessionGuard.php
app/Auth/Access/RegistrationService.php
app/Auth/UserRepo.php
app/Console/Commands/CreateAdmin.php
app/Exceptions/Handler.php
app/Exceptions/NotifyException.php
app/Http/Controllers/Api/UserApiController.php
app/Http/Controllers/Controller.php
app/Http/Controllers/UserController.php
routes/api.php
tests/Api/TestsApi.php
tests/Api/UsersApiTest.php