Skip to content

Greeter: avoid early authentication#885

Draft
lenemter wants to merge 1 commit into
mainfrom
lememter/avoid-early-auth
Draft

Greeter: avoid early authentication#885
lenemter wants to merge 1 commit into
mainfrom
lememter/avoid-early-auth

Conversation

@lenemter

@lenemter lenemter commented Jul 6, 2026

Copy link
Copy Markdown
Member

Fixes #413

Current workflow in main is "carousel page switched" -> "authenticate by username" -> "wait for password" -> "respond with password". But when a user has no password set, LightDM.Greeter.authenticate (username) logs the user in without the need to provide the credential via LightDM.Greeter.respond (credential).

This PR changes workflow to "Wait for a card to call authenticate with username and credential" -> "authenticate" -> "respond"

Also I put this logic into a separate class since MainWindow.vala is very long and it's very hard to read code there.

@lenemter lenemter requested a review from a team July 6, 2026 21:06
@lenemter lenemter marked this pull request as draft July 6, 2026 21:22
@lenemter

lenemter commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Converting to draft to think about how this will affect fingerprint auth

@vjr

vjr commented Jul 8, 2026

Copy link
Copy Markdown
Member

Converting to draft to think about how this will affect fingerprint auth

Hi! I think you can go ahead with this PR and not worry about fprint auth which is already currently quite broken. As long as a user can still add the fprintd PAM config and "somewhat" login with their fprint in this PR we should be good IMO. My PR #884 to address/workaround fprint auth/login to get it in an acceptable condition I can rework the code after your PRs get merged, it's a small diff anyway, assuming reviewers don't raise concerns with the approach. Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Buggy no-password user logout

2 participants