Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout functionality #296

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

MrunalKashid02
Copy link
Contributor

@MrunalKashid02 MrunalKashid02 commented Oct 23, 2024

πŸ“‹ Description

πŸ”¨ Changes Made

  • Added Logout functionality for stakeholder and student

βœ… Checklist

Before submitting the PR, please make sure you have completed the following:

  • I have followed all the guidlines mentioned in CONTRIBUTING.md.
  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation (if applicable).
  • I have tested it locally and it works fine.
  • Any dependent changes have been merged and published in downstream modules.

🏷️ Types of Changes

What type of changes does your code introduce? (Check all that apply)

  • Bug fix (non-breaking change which fixes an issue) πŸ›

  • New feature (non-breaking change which adds functionality) ✨

  • UI enhancement (non-breaking change which enhances UI) 🎨

  • Documentation update πŸ“š

  • Fixes Log out is not working Β #237

πŸ“Έ Screenshots (if applicable)

Recording.2024-10-23.220554.mp4
Recording.2024-10-23.220926.mp4

Thank you for contributing to Research Nexus! We look forward to reviewing your PR and getting it merged!

@MrunalKashid02 MrunalKashid02 marked this pull request as ready for review October 23, 2024 16:46
const handleLogout = () => {
const result1 = document.getElementById('box1');
result1.style.display = 'block';
localStorage.clear();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using clear function use removeItem for removing the token

@@ -137,6 +137,9 @@ <h3 style="margin-left:3vw;font-size: 22px;">Edit Profile</h3>
</div>
</div>
</div>
<div id="box1">
<p>Logout Successfully...</p>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also increase the font-size of the message

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.

Log out is not working
2 participants