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

Improve Error Handling, Validation, and UI Feedback in src/Front_end/Authentication/loginpage/loginbox.jsx #45

Open
Amansingh0807 opened this issue Nov 8, 2024 · 0 comments

Comments

@Amansingh0807
Copy link

The current Login component has some issues that impact user experience and error handling:

  1. Missing Input Validation: There's no check for empty email or password fields before attempting login.
  2. Error Handling: Errors in CheckemailExists and PasswordCheck are not properly handled, which can lead to unexpected behavior if these functions fail.
  3. Loading Indicator: There is no loading state during login, leading to potential multiple submissions and user confusion.
  4. User-Friendly OAuth Errors: Errors during OAuth login lack clear, user-friendly messages.

Suggested Fixes:

  • Add input validation for empty email and password fields.
  • Wrap calls to CheckemailExists and PasswordCheck in try-catch blocks.
  • Implement a loading state to disable the login button while processing.
  • Display clear error messages if OAuth login fails.
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

No branches or pull requests

1 participant