Skip to content

Issue #10 - [BUG] Profile Email Field Accepts Empty Values Causing Sign-In Issues #22

@rogelio-cmj

Description

@rogelio-cmj

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

  1. Navigate to the profile settings page in the Dokploy dashboard
  2. Locate the email field and clear its contents completely (make it empty)
  3. Click the "Save changes" button
  4. Observe: The profile updates successfully without any validation errors
  5. Sign out of the application
  6. Attempt to sign in again using your credentials
  7. 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

  1. Navigate to the profile settings page
  2. Try to clear the email field and save — verify an error message appears
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions