Commit Graph

237 Commits

Author SHA1 Message Date
4d1bfe7c46 Add temporary giveaway page 2021-12-09 21:22:40 +00:00
e46ebfc63a Decrease vacancy slots by one when firing approval event 2021-11-16 17:00:01 +00:00
60c53d9b31 Add missing namespace 2021-11-07 18:13:26 +00:00
a2f7b76fcb Add interface to force rejections 2021-11-06 15:06:47 +00:00
aed473a01a Add logic for forced application rejection 2021-11-06 14:52:48 +00:00
befc2ebdc6 Added better cancel log message
Added a better cancellation log message that details the reason for cancelling the appointment.
2021-11-05 10:36:19 +00:00
fce6e92d9d Added an appointment cancellation button 2021-11-03 00:38:20 +00:00
93172d1e81 Improve devtools interface
This commit revamps the interface and adds more commands.
2021-10-30 04:37:10 +01:00
59cfbd7ed1 Fix broken suspension cleaner
This commit rewrites the previously broken auto ban cleaner. It's now much more efficient and compact, and it removes bans correctly and on the right date.

Fixes #1
2021-10-30 03:53:32 +01:00
230eda1974 Removed API key feature
Removed API key generation feature in preparation for JWT authentication
2021-10-29 20:23:45 +01:00
c657da951c Allow vacancies to be deleted 2021-10-25 05:45:45 +01:00
596d0ab648 Removed MojangStatusProvider
Mojang got rid of their old status API as it wasn't working properly, and it was based on a legacy system: https://bugs.mojang.com/browse/WEB-2303?focusedCommentId=1086543&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1086543
2021-10-25 02:52:02 +01:00
1afd420d25 Added account status badges 2021-10-25 02:28:42 +01:00
3c0e33fef7 Fix issue with account deletions
Also, added the ignition file for customising the error page for devs
2021-10-25 02:08:32 +01:00
de2c3a0efd Add IP facade 2021-10-24 04:41:33 +01:00
22e9cdb709 Remove comments used during debug 2021-10-23 07:33:45 +01:00
ab037a3474 Allow hiding IP addresses
This commit introduces a new feature where users can disable the collection and display of IP addresses. It's hardcoded in the .env config file for security reasons, and demo mode ignores this setting, because it already hides IPs by default.
2021-10-23 07:27:35 +01:00
5ff96143a7 Fix no-license UUID bug
This commit fixes a registration bug while license requirements are off.
Since the app always expects a UUID, it would error out without one.
2021-10-20 03:43:58 +01:00
a880eb65b0 Revert last commits
This reverts commit 2ddef6058d.
2021-10-13 02:57:00 +01:00
2ddef6058d Revert "Revert "Revert "Merge branch 'master' into develop"""
This reverts commit 427c9d1c57.
*facepalm*
2021-10-13 01:55:12 +01:00
427c9d1c57 Revert "Revert "Merge branch 'master' into develop""
This reverts commit fc6d7d2b18.
2021-10-13 01:47:16 +01:00
fc6d7d2b18 Revert "Merge branch 'master' into develop"
This reverts commit 42178e26de, reversing
changes made to d876dd6055.
2021-10-13 01:19:04 +01:00
b2b29382bf Merge branch 'develop' 2021-10-13 00:02:42 +01:00
92679e94d5 Add unknown MC status placeholder to cache 2021-10-12 23:01:15 +01:00
8d1e39c43c Replaced ConnectException with ConnectionException
This exception is thrown and handled when Mojang servers are down.
2021-10-12 22:41:24 +01:00
521810c23c Fix team update issue 2021-09-04 13:50:43 +01:00
e6f84cd09a Fixed broken Laravel Mix
Also disabled IP history logger for demo mode
2021-09-04 02:56:18 +01:00
3f4bc28fd4 Added Demo mode
Demo mode allows to safely run a demo version of the app, with destructive features limited.

Some bugs were also fixed in this commit.
2021-09-04 00:44:54 +01:00
8942623bde Added services
This commit moves most controller logic onto Services. Services are part of the Service-Repository pattern. The models act as repositories.

Services are easily testable and are needed for the upcoming API, in order to avoid duplicated code and to maintain a single source of "truth".

 The User, Vacancy and Vote controllers still need their logic moved onto services.
2021-07-25 22:54:15 +01:00
c739933668 Push suspension logic onto Service
In preparation to the upcoming API, most logic is being moved to services. Models function as repositories.
2021-07-21 19:33:52 +01:00
cbcc1f025a Refactored ban system
Implemented a Reddit-like account suspension system (similar to subreddit bans). This makes it easier to ban users from the app, and the code has also been cleaned up.

The interface was also revamped.
2021-07-20 22:35:49 +01:00
6cda1fe183 More refactoring
Refactored some old code and added missing translation calls.
2021-07-20 10:32:43 +01:00
620453c1e4 Separation of Concerns + old coude cleanup 2021-07-20 00:35:03 +01:00
9baa249ba7 Added logging to API calls 2021-03-31 19:53:23 +01:00
f62ea9669b Finished applications API endpoint group 2021-03-31 19:39:42 +01:00
6940b1816e Merge remote-tracking branch 'origin/develop' into develop 2021-03-31 15:50:55 +01:00
ddd79d38fe API Resources and first endpoints 2021-03-31 03:55:09 +01:00
2bc07d8ca0 Add key management page 2021-03-30 18:16:01 +01:00
99779c9053 API key management interface 2021-03-30 01:27:49 +01:00
6d94263ede JSON response provider 2021-03-29 23:47:55 +01:00
Miguel N
5f6f6f693d Remove linebreak processing
This approach would allow users to directly use HTML in their responses. We'd need to purify HTML on the way out to only allow <br>, otherwise, there'd be XSS concerns.

Rendering as Markdown and letting users know they can use it is a better approach in the long run.
2021-01-29 17:20:28 +00:00
Miguel N
f83b3a6860 Updated linebreak processing 2021-01-29 17:12:36 +00:00
Miguel N
f17bb0e3cc Update 'app/Http/Controllers/ApplicationController.php' 2021-01-29 17:00:35 +00:00
Miguel N
f941980602 % to $ 2021-01-29 16:57:57 +00:00
Miguel N
0f5e812e03 Usability: Turn CRLF/CR/LF into BR 2021-01-29 16:56:29 +00:00
Miguel N
3a56d2bfb2 Removed 100 character limit from submissions 2021-01-29 16:27:39 +00:00
Miguel N
685ec75d0c Reverse 2021-01-27 02:31:57 +00:00
Miguel N
d234415d38 Logic changes for confirmation dialog
This commit changes the deletion mechanism for forms. Currently, it sets the wanted deletion ID to the session, and redirects the user to the previous page, to open a confirmation dialog for deletion.
2021-01-27 02:23:30 +00:00
14a8e9e9d5 Force users to change password
This commit applies the password_expiration setting to all users.
Users won't be able to do anything other than update password until it's done.
2021-01-06 05:03:38 +00:00
aa2bfac3e5 Show current pw policy in register page
Also adds a warning for when pw policy is set to off
2021-01-06 03:48:14 +00:00