-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add username validation in Auth & Receipts controllers, remove the en…
…cryption test model & controller (#12) This commit introduces validation for usernames in the `AuthController` and `ReceiptsController`. A check is added to ensure usernames do not contain invalid characters such as "..", "/", or "\\". If any invalid characters are found, a `BadRequest` response is returned with an appropriate error message. Additionally, a minor syntax improvement is made in `ReceiptsController` for creating a list of product IDs using a more concise list comprehension style.
- Loading branch information
Showing
5 changed files
with
16 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.