Skip to content

Conversation

@Richard-Carnivale
Copy link

This pull request improves the login form by adding client-side validation to prevent users from submitting usernames or passwords that contain:
Special characters: !@#$%^&*()
Spaces

Changes include:
Updated Login.tsx to check input before calling the login API.
Displays a red error message below the form if invalid characters are entered.
Keeps existing Redux login error handling for invalid credentials from the backend.

Benefits:
Prevents unnecessary API calls with invalid input.
Provides immediate feedback to the user.

Linked issue:
Fixes #185

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.

Better Auth Form Errors

1 participant