service-captcha/app
Leonid Nikitin 92206a028a
Refactor error check in AuthController.
Changed the error check in the AuthController from checking if the result is not successful to checking if the result has an error. This change was made to clarify the code and ensure that errors are handled properly.
2023-07-06 22:32:29 +06:00
..
Captcha Add captcha image generation functionality. 2023-06-28 17:29:56 +06:00
Console Added console command to add user with admin role. 2023-07-02 16:17:18 +06:00
Contracts A new method 'isError' has been introduced to the ServiceResult interface and its implementation. This change was made to improve readability and logic. Now instead of checking if the result is not successful, we can directly check if it's an error using isError method. This improves the code clarity. 2023-07-06 22:31:39 +06:00
Dto Made authorization. 2023-07-06 10:48:32 +06:00
Enums A new enumeration 'SystemRole' has been created for user roles. For now, it only contains one case 'Admin'. This list is intended to designate system roles that cannot be removed. 2023-07-02 16:07:49 +06:00
Exceptions Added console command to add user with admin role. 2023-07-02 16:17:18 +06:00
Http Refactor error check in AuthController. 2023-07-06 22:32:29 +06:00
Models Added console command to add user with admin role. 2023-07-02 16:17:18 +06:00
Providers Extended rate limiting functionality within the RouteServiceProvider to limit the login requests. Now the application limits the number of requests both per IP address and per email. This will drastically improve security by minimizing automated spam and brute-force attack attempts. 2023-07-06 10:50:15 +06:00
Repositories Made authorization. 2023-07-06 10:48:32 +06:00
ServiceResults A new method 'isError' has been introduced to the ServiceResult interface and its implementation. This change was made to improve readability and logic. Now instead of checking if the result is not successful, we can directly check if it's an error using isError method. This improves the code clarity. 2023-07-06 22:31:39 +06:00
Services Introduced a new class ServiceResultSuccess to distinctively handle successful service responses. Changes were made in AuthService and Service base class to replace ServiceResultArray with ServiceResultSuccess for successful operations. This provides a more accurate response type and improves code readability. 2023-07-06 21:54:10 +06:00
View/Components/Public Made authorization. 2023-07-06 10:48:32 +06:00