Skip to content

Refactor API controllers for security and performance#1

Open
manyasiingh wants to merge 3 commits intomainfrom
refactored_code
Open

Refactor API controllers for security and performance#1
manyasiingh wants to merge 3 commits intomainfrom
refactored_code

Conversation

@manyasiingh
Copy link
Owner

Refactored API controllers code of Admin , About Content and User Services for better security and performance

For AboutContentController.cs

The main area for improvement is to adopt RESTful API design best practices, specifically by changing the PUT method to align with standard conventions for resource updates.

For AdminController.cs

There are several areas where the code can be optimized for performance, readability, and consistency. The existing code makes multiple separate calls to the database to retrieve different pieces of information, which can be inefficient.

For UserServiceController.cs

There are significant security vulnerabilities and areas for improvement in code hygiene, consistency, and separation of concerns. The most critical issue is the lack of password hashing, which stores user passwords in plain text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants