Skip to content

Retries should be handled by polkit agent helper / pam. (Agent closes after single attempt) #16

@AC17dollars

Description

@AC17dollars

The authentication popup closes after any password attempt, it fails immediately on the first incorrect password instead of allowing multiple retries.

To fix this, the agent should properly handle multiple retries by tracking the number of failed attempts whenever the helper outputs a FAILURE message. Instead of closing the popup right away, the application should keep it open until the helper process terminates, which occurs only after PAM exhausts its retry limit. The system should then close the authentication window and clean up only when PAM signals a final failure or when the user cancels or closes the prompt manually.

When the password is being verified, the password entry field can be temporarily disabled or hidden, and a “Verifying…” message should be shown to indicate that authentication is in progress. If an incorrect password is detected but additional attempts are still allowed, the dialog should display a message such as “Incorrect password, please try again” without closing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions