Skip to content

Web App login button stays disabled after Chrome autofills credentials #44472

Closed

Description

@xhdnoah

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is a bug report, not a question or feature request.
  • I have searched for existing issues, including closed ones.
  • I confirm that I am using English to submit this report.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Reproduced with the frontend running from source at main commit 809f5df3a3 (web/package.json version: 1.17.1).

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

  1. Enable email/password authentication for a published Web App.
  2. Save valid login credentials for the Web App's origin in Chrome's password manager.
  3. Open the Web App in Chrome and follow the redirect to /webapp-signin?redirect_url=....
  4. Let Chrome autofill the saved email and password without manually typing into either field.
  5. Observe the login button.
Image

This concerns the Web App login page (/webapp-signin), rather than the console login page (/signin). It was reproduced using a local frontend connected to an existing backend.

✔️ Expected Behavior

Once both credentials are autofilled, the login button should become enabled. Clicking it should submit the current credentials using the existing validation and login flow, without requiring the user to edit either field manually.

❌ Actual Behavior

The email and password remain visibly filled in, but the login button stays disabled, preventing submission.

The button currently depends on React's email/password state. Chrome autofill can leave that state out of sync with the displayed fields. In some autofill states, polling the input values alone is also insufficient because Chrome can display the credentials before exposing their values to JavaScript.

A local fix that accounts for the browser's autofill state and reads the current values again on submission resolved the reported behavior in Chrome. Regression tests cover native value changes without input events and the case where autofill is indicated before values become readable.

Related: #21177 reported a similar symptom on the console /signin page in an older release and is closed. This report is specifically for the current Web App /webapp-signin flow.

Activity

  1. added
    🐞 bug
    on Oct 21, 2026
  2. szupzj18 commented on Oct 21, 2026

    @szupzj18

    Hi @xhdnoah, thanks for the precise report — I can confirm the root cause on current main: in webapp-signin/components/mail-and-password-auth.tsx the submit button is gated on React state (disabled={isLoading || !email || !password}), while the inputs only update that state through onValueChange. Chrome autofill fills the DOM values without firing that callback, so the state (and the button) stays out of sync with what's displayed.

    It sounds like you already have a local fix with regression tests for this. Do you plan to open a PR for it? If so, happy to leave it to you (and glad to help review or test if useful). If you don't have time to submit it, I can put together a PR with a component test covering the native-value-change-without-input-event case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions