Corporate Banking Portal is a comprehensive web application built using the MERN stack (MongoDB, Express.js, React.js, Node.js). The portal provides essential banking services for corporate users, including secure authentication, balance checking, international money transfers, and an admin portal for administrative tasks.
The bug related to allowing access to the /register and /login routes after a user is logged in has been fixed. The application now correctly restricts access to these routes when a user is authenticated. If a user attempts to navigate to /register or /login after logging in, they will be redirected to the homepage or dashboard.
Code Changes
Implemented route protection logic to prevent access to /register and /login for authenticated users.
Added a redirect mechanism to send logged-in users to the homepage or dashboard if they attempt to access these routes.
Resolution
The bug related to allowing access to the
/register
and/login
routes after a user is logged in has been fixed. The application now correctly restricts access to these routes when a user is authenticated. If a user attempts to navigate to/register
or/login
after logging in, they will be redirected to the homepage or dashboard.Code Changes
/register
and/login
for authenticated users.