Commit Graph

106 Commits

Author SHA1 Message Date
4368aec1b1 Merge pull request 'Версия 0.8.0' (#4) from develop into main
Reviewed-on: #4
2024-04-28 14:26:46 +05:00
bd91cdef0c
BROADCAST_DRIVER changed to reverb. 2024-04-28 13:13:27 +05:00
1532cecedc
For demo mode, I hid the display of IP and UserAgent. 2024-04-28 02:12:09 +05:00
5703015874
Revived the dashboard. 2024-04-28 01:26:30 +05:00
4bc170ed00
Added final to UsersController. 2024-04-26 20:36:32 +05:00
20ed4860da
Added the ability to enable captcha when logging in. 2024-04-25 23:45:07 +05:00
e059f09e2f
Updated Laravel to 11. 2024-04-25 20:58:52 +05:00
8794b8af4e
I returned the LICENSE.md file back. 2024-04-25 20:07:13 +05:00
85e181e51c
Changed the project structure. 2024-04-25 19:56:34 +05:00
3f21276ec5 Merge pull request 'Update README.md.' (#3) from develop into main
Reviewed-on: #3
2023-12-13 23:28:38 +06:00
01153867b3
Update README.md.
Fixed link to JavaScript GUI repository.
2023-12-13 23:27:45 +06:00
c3bfd4f920 Merge pull request 'Версия 0.7.1.' (#2) from develop into main
Reviewed-on: #2
2023-12-09 00:59:41 +06:00
172a9460df
Fix https on prod.
Added the force_https parameter to env APP_FORCE_HTTPS. This will force https to be enabled.
2023-12-09 00:55:56 +06:00
a5ba9eb3f8
I added (int) to the configuration in the parameters, where we get the numbers through the env function. 2023-12-09 00:54:12 +06:00
5ea5d4d0ba Merge pull request 'Version 0.7.0' (#1) from develop into main
Reviewed-on: #1
2023-12-08 21:18:22 +06:00
e72dc03589
Update README with project specifics.
The README file has been updated to provide specific details about the current project.
2023-12-08 21:15:51 +06:00
6bf2bc793b
Add Docker setup for production environment. 2023-12-08 21:10:31 +06:00
8ccbd5000d
Add demo mode restriction to CaptchaToken destroy method.
This commit adds a check to the `destroy` method in the `CaptchaTokenService`. It uses the `Helpers::isDemoModeAndUserDenyUpdate` function to prevent users from deleting tokens while the application is in demo mode. This was added to protect the application's state during presentations or demos.
2023-12-05 21:48:02 +06:00
a52b148101
Add license information for captcha backgrounds. 2023-12-05 21:01:49 +06:00
b5db913c24
Add demo mode restrictions to user operations.
Added functionalities to restrict certain user operations like update, password change, and deletion in demo mode. This is done to prevent demo users from modifying crucial data. Helper methods are created for standard re-usable checks. Also, Blade directive is added for frontend UI demo checks.
2023-12-05 00:53:04 +06:00
ebc2dfd944
Update copyright link in footer.
The copyright link in the footer of the private layout app has been updated in this revision. Previously, it was pointing to a Github account, kor-elf. It is now pointing to the actual repository, which now resides on git.kor-elf.net. In addition to this, the full name of the owner, Leonid Nikitin (kor-elf), has been added for better transparency and clarity.
2023-12-04 22:46:37 +06:00
63d3c8cc6e
Add captcha code integration instructions to edit page.
In the captcha tokens edit page, a new section has been added to provide instructions for integrating the captcha code in user's website. This aims to facilitate ease of integration for users, by providing them a readily available code snippet.
2023-12-04 22:44:40 +06:00
630c316aaf
Added service-captcha-gui. 2023-12-04 22:42:35 +06:00
fcb8532b9d
Added file LICENSE. 2023-12-04 22:41:23 +06:00
2a7aaed0db
Correct typo in swagger.json
Fixed a typo in the 'user_agent' variable of the 'GetCaptchaKeyInfo' object in swagger.json. This was important to rectify in order to achieve accuracy and prevent potential errors during API documentation generation.
2023-12-03 00:57:33 +06:00
9221e089dd
Revived API POST /captcha/{captcha_uuid}.
Receiving captcha information for validation.
2023-11-26 22:42:22 +06:00
10425db5e0
Fixed a bug where two identical symbols appeared in a captcha.
The commit fixes an issue where wrong variable was passed as second argument to randomSymbols method. Previously it was using an uninitialized variable 'fakes' which was supposed to be populated by 'success' variable. The 'success' variable already has the set of valid symbols which should be used to generate fake symbols for captcha.
2023-11-26 15:25:36 +06:00
520a3ba068
Revived API POST /api/v1/captcha.
Captcha validation has been adjusted.
2023-11-26 15:09:42 +06:00
18899c81f2
Increase captcha image dimensions
The dimensions for both the 'image_head' and 'image_body' captcha images have been increased to provide a clearer and more readable captcha for users. 'Image_head' has been updated from 150x40 to 500x75, and 'image_body' from 300x240 to 500x500.
2023-11-23 00:26:47 +06:00
17fcc6e976
Removed unnecessary copying in Docker for development. 2023-09-19 17:26:26 +06:00
35c734d840
Add CaptchaToken to permissions language files
This commit adds 'CaptchaToken' key to both English and Russian versions of the permissions language files. The addition of the 'CaptchaToken' key was necessary to provide translations for tokens used in captcha creation. The lack of these labels was causing readability issues in UI.
2023-09-19 15:19:48 +06:00
c3e4c68a41
Add CryptographyContract and its implementation
Added a new CryptographyContract interface and CryptographyString class that implements this contract. The CryptographyContract encapsulates the encryption and decryption of strings, enforcing these operations to be standardized across the application. The CryptographyString class uses Laravel's native crypt facades to perform these actions. In the AppServiceProvider, CryptographyContract is now bound to CryptographyString class, allowing the container to automatically resolve the dependencies wherever the interface is type hinted.
2023-09-19 14:29:01 +06:00
27046e6674
Revived API /api/v1/captcha.
Now a new captcha is created to check for a bot.
2023-09-19 14:27:33 +06:00
56cd409301
The return comment of the getCoordinators method has been changed. 2023-09-19 14:21:56 +06:00
d8bf5dd116
Remove commented volumes from docker-compose.yml.
The lines setting up volumes for the 'swagger' service were commented out and redundant, leading to potential confusion. This commit removes those lines to clean up and simplify the file.
2023-08-27 22:25:09 +06:00
61cc272e2f
Rename parameter names in Swagger API documentation.
In our Swagger API documentation, the parameter names 'public_token' and 'private_token' have been renamed to match our established naming conventions. The hyphenated form ('public-token' and 'private-token') is more consistent with other parameters.
2023-08-23 23:45:57 +06:00
d72d6ff614
Update swagger.json for accurate API path.
The "servers" section was deleted and the "/api/v1" part was added to "paths" values for a more refined URL structure. This change makes it more clear that the API version is part of the API route.
2023-08-23 21:56:06 +06:00
9bfd3fef1a
Add Swagger API documentation and proxy routing.
Added Swagger as a new service in the docker-compose file for generating the API documentation. The new API documentation is provided via an OpenAPI file located at `public/swagger.json`. Changes in routing were done to handle /api-docs requests and redirect them to the running Swagger UI instance. This will make API easier to understand and debug.
2023-08-23 01:02:56 +06:00
742b0feaf0
Add captcha tokens management. 2023-08-22 00:15:35 +06:00
d2b29e2225
The refactoring added final readonly to App\Services\Role\BuilderCommand. 2023-08-01 23:43:03 +06:00
8f143c031f
Fixed warning in analysis PHP Storm. 2023-08-01 23:40:10 +06:00
3e18ca6510
Fixed warning in analysis PHP Storm. 2023-08-01 23:38:09 +06:00
faa706a79a
Removed duplicate "Toggle Navigation" keys in languages. 2023-08-01 23:36:16 +06:00
941699f473
Added @can('delete', $role). 2023-08-01 22:09:39 +06:00
9c1ed593b5
Added method getRolesForSelect in the RoleRepository. 2023-08-01 22:09:06 +06:00
73d99a0432
Fixed typo deleting RolePolicy: Role to role. 2023-08-01 22:07:47 +06:00
52c6fd88d7
Added the ability to manage users. 2023-08-01 22:04:35 +06:00
dc6b6b0d42
Added @canany(['create', 'update'], $role) to resources/views/private/roles/_from.blade.php. 2023-08-01 21:53:07 +06:00
4083e2ec5e
Added the ability to manage a group of users. 2023-07-16 19:21:09 +06:00
ba7e52f8ac
Added a new function 'errors' in Private Controller to handle service errors. This function checks if the resulted error code matches HTTP_UNPROCESSABLE_ENTITY and in that case, it redirects back with input and errors. For any other case, it aborts with the resulted error code and message. The main purpose of this change is to centralize error handling in one place and make the controller's actions cleaner. 2023-07-12 23:44:53 +06:00