[bug]: Login and Register Alert Issue - No Redirection to Home Page
Closed this issue · 1 comments
Issue Description
The login and register functionality is currently only displaying an alert message after successful authentication, but it is not redirecting the user to the home page as expected. This impacts the user experience by requiring manual navigation to the home page.
Steps to Reproduce
- Go to the login or register page.
- Enter valid credentials and submit the form.
- Observe the alert that confirms successful login or registration.
- Note that the user remains on the same page instead of being redirected to the home page.
Expected Behavior
- After a successful login or registration, the user should be automatically redirected to the home page.
Actual Behavior
- Only an alert message is displayed, and the user is not redirected to the home page.
Video
Screen.Recording.2024-10-08.235311.mp4
Please assign this task to me under gssoc 24 and hacktoberfest tag.
I will contribute by improving the login and registration process to ensure users are automatically redirected to the home page after successful authentication. Currently, users only receive an alert confirming the login or registration, but they must manually navigate to the home page. I will review the existing code to find where the success messages are triggered and then add logic to redirect users to the home page immediately after login or registration. After making these changes, I will thoroughly test the functionality to confirm that the redirection works as expected, providing a smoother and more user-friendly experience.