Ritik Kumar
Ritik Kumar
### In `FragmentNavigationManager.java`, the `mFragmentManager `is used to commit transactions. Ensure these are state-safe to avoid `IllegalStateException `after `onSaveInstanceState`. File Path: `LIVEMart/app/src/main/java/com/example/oop_project/Main/Helper/FragmentNavigationManager.java ` Improvement: Use `commitAllowingStateLoss()` for non-critical navigation or...
### The current navigation management uses a manual approach in NavigationBar.java. Implementing a more structured `NavigationManager `improves modularity. **File Path** : `LIVEMart/app/src/main/java/com/example/oop_project/Main/NavigationBar.java ` **Improvement** : Instead of handling fragment transactions...
### **Description:** The application lacks robust access control and role verification. While it checks if a user is logged in via $_SESSION['usermail'], it does not verify if that user has...
### **Description:** The application directly embeds user-provided data from $_POST variables into SQL query strings without sanitization or parameterization. This allows an attacker to manipulate the query logic by inputting...
### **Summary:** In `Login.jsx` and `Register.jsx`, the "Hash/Hub" logo links use standard HTML `` tags with `href="#"`. In a React Single Page Application (SPA), using tags causes the browser to...
### **Summary:** In `App.js`, the `useEffect `hook uses `localStorage.getItem('user')` as a dependency. In React, `localStorage `is not a reactive part of the state; changing a value in storage does not...
### **Summary:** The backend URL `https://hashhub-backend.herokuapp.com/` is hardcoded individually across multiple files like `Login.jsx, Register.jsx, and Contact.jsx`. This creates a "maintenance nightmare"; if the backend server moves or changes, you...
### **Summary:** The application currently relies on a simple string check in `localStorage (userexist === 'true')` to determine if a user is authenticated. Because `localStorage `can be modified by any...
The project includes a `main.js` placeholder for "SCROLL SECTIONS ACTIVE LINK". Implementing this ensures the navigation menu highlights the section the user is currently viewing. **File Path :** `assets/js/main.js` **JS...
### The project mentions "Sending emails in the contact section", but typically requires robust client-side validation. **Bug/Issue :** Empty Form Submission: Without explicit JavaScript validation or HTML5 `required `attributes, users...