π Bug Report
Area: Authentication β Login & Signup Forms
Type: Bug β Missing Client-Side Validation
Priority: Medium
π Description
The Login and Signup pages in FlowForge currently
perform no client-side validation before submitting
the form. This means:
- Users with empty fields or invalid email formats
must wait for a server round-trip to see errors
- No real-time feedback as user types
- Poor UX β modern apps validate instantly
π Proof β No Validation in Source Code
In frontend/app/login/page.tsx, the only check is:
if (!email || !password) {
showToast("Please enter your email and password.", "error");
return;
}
No email format check, no password length check,
no real-time inline field validation anywhere.
In frontend/app/signup/page.tsx:
- No email format validation on the client side
- No real-time password strength indicator
- No username format check before API call
β Current Behaviour
- User submits form with invalid email β
waits for server response β sees error
- No inline validation messages under fields
- No real-time feedback while typing
β
Expected Behaviour
- Email field shows "Invalid email format"
instantly when user blurs the field
- Password field shows "Min 8 characters"
indicator in real-time
- Login button disabled until basic
validation passes
- No unnecessary API calls for obviously
invalid inputs
π‘ Proposed Fix
In frontend/app/login/page.tsx:
- Add email format regex check on blur
- Show inline error message under each field
- Disable login button if validation fails
In frontend/app/signup/page.tsx:
- Add real-time email format validation
- Add password strength indicator
- Add username format check (alphanumeric,
3-20 chars) before API call
π Files to Change
frontend/app/login/page.tsx
frontend/app/signup/page.tsx
@Shriii19
I'd like to work on this issue.
Could you please assign it to me?
nsoc26
π Bug Report
Area: Authentication β Login & Signup Forms
Type: Bug β Missing Client-Side Validation
Priority: Medium
π Description
The Login and Signup pages in FlowForge currently
perform no client-side validation before submitting
the form. This means:
must wait for a server round-trip to see errors
π Proof β No Validation in Source Code
In
frontend/app/login/page.tsx, the only check is:No email format check, no password length check,
no real-time inline field validation anywhere.
In
frontend/app/signup/page.tsx:β Current Behaviour
waits for server response β sees error
β Expected Behaviour
instantly when user blurs the field
indicator in real-time
validation passes
invalid inputs
π‘ Proposed Fix
In
frontend/app/login/page.tsx:In
frontend/app/signup/page.tsx:3-20 chars) before API call
π Files to Change
frontend/app/login/page.tsxfrontend/app/signup/page.tsx@Shriii19
I'd like to work on this issue.
Could you please assign it to me?
nsoc26