-
Notifications
You must be signed in to change notification settings - Fork 147
Description
Motivation
User authentication systems rely on consistent data validation to ensure users can reliably access their accounts. When profile updates allow invalid data that authentication systems reject, users can inadvertently lock themselves out of the application. This creates a critical user experience problem where a seemingly successful profile update leads to authentication failure.
Current Behavior
The profile settings page allows users to clear and save an empty email address. While the profile update appears to succeed, this creates an inconsistent state where the user's account has invalid data. When the user signs out and attempts to sign in again, the authentication system rejects the empty email, preventing access to the account.
Reproduction Steps
- Navigate to the profile settings page in the Dokploy dashboard
- Locate the email field and clear its contents completely (make it empty)
- Click the "Save changes" button
- Observe: The profile updates successfully without any validation errors
- Sign out of the application
- Attempt to sign in again using your credentials
- Observe: Sign-in fails because the authentication system requires a valid email format
Expected Behavior
The email field should enforce validation rules that ensure users cannot save empty or improperly formatted email addresses.
Acceptance Criteria
- Attempting to save an empty email in the profile form displays a validation error and prevents submission
- Attempting to save an improperly formatted email (e.g.,
"notanemail","test@","@example.com") displays a validation error - Validation errors provide clear, user-friendly messages explaining what went wrong
Steps To Test
- Navigate to the profile settings page
- Try to clear the email field and save — verify an error message appears
- Try entering invalid email formats (missing
@, missing domain, etc.) — verify appropriate error messages appear
Submission
Download https://cap.so/ to record your screen (use Studio mode). Export as an mp4, and drag and drop into an issue comment below.
Guide to submitting pull requests: https://hackmd.io/@timothy1ee/Hky8kV3hlx