Matthew Penner
926c8563d0
user: cleanup
2022-12-15 12:26:34 -07:00
Matthew Penner
7f669828c6
tests: more fixes, but stuff is still broken
2022-12-14 19:53:07 -07:00
Matthew Penner
6b11836a41
user: remove name_first
and name_last
2022-12-14 18:17:27 -07:00
Matthew Penner
67bf3e342e
api(application): v2 backport
2022-12-14 17:05:46 -07:00
Lance Pioch
a1a52754ad
chore: add phpstan static analysis minimum ( #4511 )
2022-11-28 09:56:03 -07:00
Lance Pioch
3bf5a71802
PostgreSQL Support ( #4486 )
...
Co-authored-by: Matthew Penner <matthew@pterodactyl.io>
2022-11-25 13:29:04 -07:00
Matthew Penner
cbcf62086f
Upgrade to Laravel 9 ( #4413 )
...
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2022-10-14 10:59:20 -06:00
DaneEveritt
287fd60891
Log activity when modifying account details
2022-05-29 18:48:35 -04:00
DaneEveritt
2fc5a734f9
Update backup logic to use activity logs, not audit logs
2022-05-29 16:19:04 -04:00
DaneEveritt
0999ad7ff0
Add activity logging for authentication events
2022-05-28 17:03:58 -04:00
DaneEveritt
b051718afe
Fix up API handling logic for keys and set a prefix on all keys
2022-05-22 19:03:51 -04:00
DaneEveritt
bd37978a98
Initial pass at implementing Laravel Sanctum for authorization on the API
2022-05-22 14:57:06 -04:00
DaneEveritt
e313dff674
Massively simplify API binding logic
...
Changes the API internals to use normal Laravel binding which automatically supports nested-models and can determine their relationships. This removes a lot of confusingly complex internal logic and replaces it with standard Laravel code.
This also removes a deprecated "getModel" method and fully replaces it with a "parameter" method that does stricter type-checking.
2022-05-22 14:10:01 -04:00
DaneEveritt
97280a62a2
Add support for storing SSH keys on user accounts
2022-05-14 17:31:53 -04:00
Dane Everitt
5515871b2f
Turns out I hate that huge space formatting, disable that mess
2021-01-27 20:52:11 -08:00
Dane Everitt
c449ca5155
Use more standardized phpcs
2021-01-23 12:33:34 -08:00
Dane Everitt
cc6f98c0fd
Replace all instances of 255 as a max length with 191; ref #2421
2020-09-26 16:29:26 -07:00
Dane Everitt
703f55271d
Remove all references to daemon keys from the codebase
2020-09-13 11:38:42 -07:00
Dane Everitt
4dddcaebb0
Start ripping out old search functionality for models
2020-09-13 11:29:47 -07:00
Dane Everitt
f0ac0725b6
[Security] Don't return all servers on the system when not a root admin and admin level servers are requested
...
Cleaned up the API endpoint by simplifying the logic and adds test case to cover this bug.
If you ever need to list _all_ of the servers on the system you should be using the application API endpoint for the servers most likely.
2020-07-26 10:43:46 -07:00
Dane Everitt
4122486468
Fix failing tests (which caught a bug in the new client query)
2020-07-09 21:32:31 -07:00
Dane Everitt
d3c749ac56
Code cleanup & fix frontend searching servers; closes #2100
2020-07-06 21:25:00 -07:00
Dane Everitt
7b75e7a648
Support using recovery tokens during the login process to bypass 2fa; closes #479
2020-07-02 23:01:02 -07:00
Dane Everitt
a998b463e3
Generate recovery tokens when enabling 2FA on an account
2020-07-02 21:55:25 -07:00
Dane Everitt
8fb21a5048
Fix error while updating user
2020-06-25 21:42:21 -07:00
Dane Everitt
f51d65229b
Add support for immutable carbon dates in models
2020-04-03 23:22:35 -07:00
Dane Everitt
5717a705a8
Fix authorization checking for subusers
2020-03-28 16:18:56 -07:00
Dane Everitt
933a4733e8
Add base support for creating a new API key for an account
2020-03-22 18:15:38 -07:00
Dane Everitt
5f13531c69
Fix up subuser API response for clients
2019-12-28 12:03:19 -08:00
Dane Everitt
c087f6429f
Temporary patch to get user management pages displaying correctly
2019-12-08 11:02:59 -08:00
Dane Everitt
06e5a05f22
Don't cause an endless loop
2019-12-08 10:44:58 -08:00
Dane Everitt
543884876f
Add basic subuser listing for servers
2019-11-03 12:20:11 -08:00
Dane Everitt
54339c1344
Add property information to common models
2019-09-05 21:53:33 -07:00
Dane Everitt
0d6cf54314
[L6] Update even more areas of codebase using custom model validation logic
2019-09-04 22:26:28 -07:00
Dane Everitt
c586157dc4
[L6] Add support for custom model validation logic
2019-09-04 22:19:57 -07:00
Dane Everitt
5b4a65a60c
[L6] Break search functionality without breaking the entire app
2019-09-04 21:21:07 -07:00
Dane Everitt
08bdc9705f
[L6] Update composer dependencies to support L6
...
Drops all of the eloquence requirements, this is going to break a shit load of code, needs to happen tired of this package always holding us back.
Quite confident in my ability to write custom code to do the basic validation we need.
Searching should be a fun nightmare to deal with later...
2019-09-04 21:00:34 -07:00
Dane Everitt
6336e5191f
Strip out JWT usage and use cookies to track the currently logged in user
2018-07-14 22:42:58 -07:00
Lance Pioch
e2dc0638d9
Fix app/ spelling errors
2018-05-13 11:12:41 -04:00
Dane Everitt
4cfb8941d5
Fix broken users table in database causing validation errors.
2018-02-25 16:08:01 -06:00
Dane Everitt
5c4200dc0c
Make external_id fillable
2018-02-24 14:47:53 -06:00
Dane Everitt
bf537922a3
Fix username validation and auto-generation, closes #927
2018-02-11 16:39:50 -06:00
Dane Everitt
a9c1946319
Add support for finding a user by external ID.
2018-02-07 21:56:11 -06:00
Dane Everitt
2bd691efad
Add database list endpoint, add more resource name magic
2018-01-25 21:26:06 -06:00
Dane Everitt
d644a53951
Update users & locations to use new permissions format
2018-01-12 20:39:15 -06:00
Dane Everitt
800e2df6b2
Merge branch 'develop' into feature/api-v1
...
# Conflicts:
# app/Contracts/Repository/RepositoryInterface.php
# app/Repositories/Eloquent/EloquentRepository.php
# app/Services/Nodes/NodeUpdateService.php
# tests/Unit/Services/Nodes/NodeUpdateServiceTest.php
2018-01-10 20:55:22 -06:00
Dane Everitt
60eb60013c
Update repository base code to be cleaner and make use of PHP 7 features
2018-01-04 22:49:50 -06:00
Dane Everitt
15289b76a7
Finish first round of User/Node API additions
...
Will still need some tweaking and improvements to allow everything to be used.
2018-01-01 15:11:44 -06:00
Dane Everitt
d21f70c04b
Merge branch 'develop' into feature/api-v1
2018-01-01 13:33:06 -06:00
Dane Everitt
4457634127
Fix user creation to use UUIDs correctly
...
Also updates the notification send method to be cleaner and more maintainable
2018-01-01 12:13:08 -06:00