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

fixed url for login upon log out #615

Merged
merged 2 commits into from
Aug 7, 2024
Merged

fixed url for login upon log out #615

merged 2 commits into from
Aug 7, 2024

Conversation

jeromehardaway
Copy link
Contributor

This pull request includes changes to the Profile component in src/pages/profile.tsx to streamline the user redirection process upon logout and when the user is not logged in.

Changes to user redirection:

  • src/pages/profile.tsx: Modified the redirection URL from /login-register to /login in the useEffect hook to ensure users are directed to the login page if they are not logged in.
  • src/pages/profile.tsx: Updated the handleLogout function to redirect users to the /login page instead of /login-register after logging out.

@jeromehardaway jeromehardaway self-assigned this Aug 7, 2024
Copy link

vercel bot commented Aug 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vets-who-code-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 1:33am

@jeromehardaway jeromehardaway merged commit 3d6e6da into master Aug 7, 2024
3 checks passed
@jeromehardaway jeromehardaway deleted the FixURL branch August 7, 2024 01:36
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.

1 participant