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

Implement login redirection and user info population #12

Merged
merged 2 commits into from
May 19, 2024

Conversation

DenverCoder1
Copy link
Contributor

@DenverCoder1 DenverCoder1 commented May 15, 2024

Related to #11

Implements the login functionality and user information persistence across the site, as well as styling the login page to match the site's design.

  • Login Implementation: Updates src/Routes/Login.js to include a login form that captures the user's name, stores it in local storage, and clears it at the end of the day. It also redirects the user to the home page upon successful login.
  • App Routing and Redirection: Modifies src/App.js to add a route for the Login component and implements a check for user information in local storage on app load. Redirects to the Login component if no user information is found.
  • User Information Utilization: Enhances src/components/CallerCallHistory.js and src/components/CallerTreatmentHistory.js to populate "with" fields in call and treatment logs with the user's name from local storage if available.
  • Styling: Adds src/styles/routes/Login.css to style the Login component, ensuring it aligns with the site's overall design.

For more details, open the Copilot Workspace session.

@Skeli789 Skeli789 merged commit 0b6921e into Skeli789:master May 19, 2024
@DenverCoder1 DenverCoder1 deleted the login-redirection branch May 22, 2024 09:33
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.

None yet

2 participants