This website requires JavaScript.
Explore
Help
Sign In
kor-elf
/
service-captcha
Watch
1
Star
0
Fork
0
You've already forked service-captcha
Code
Issues
Pull Requests
Packages
Projects
Releases
5
Wiki
Activity
ba7e52f8ac
service-captcha
/
app
/
Http
History
Leonid Nikitin
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
..
Controllers
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
Middleware
A new middleware
UserLocale.php
has been added. This middleware sets the language locale based on each user's preference. It operates by checking if the user's preferred language is set during the request cycle and if so, it changes the app's locale accordingly. This feature facilitates personalization by displaying the app in a user's preferred language.
2023-07-10 21:44:00 +06:00
Requests
Added the ability to save user settings.
2023-07-10 21:42:55 +06:00
Resources/Api
/V1
Add captcha image generation functionality.
2023-06-28 17:29:56 +06:00
Kernel.php
A new middleware
UserLocale.php
has been added. This middleware sets the language locale based on each user's preference. It operates by checking if the user's preferred language is set during the request cycle and if so, it changes the app's locale accordingly. This feature facilitates personalization by displaying the app in a user's preferred language.
2023-07-10 21:44:00 +06:00