We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 542f346 commit 8c7a9cfCopy full SHA for 8c7a9cf
1 file changed
src/shell/lockscreen/lock_screen.cpp
@@ -716,13 +716,8 @@ void LockScreen::scheduleAutoAuthentication() {
716
bool LockScreen::fingerprintAuthLikelyAvailable() { return fprintd::isAvailable(); }
717
718
std::string LockScreen::passwordPamService() {
719
- if (!fingerprintAuthLikelyAvailable()) {
720
- return "login";
721
- }
722
- if (PamAuthenticator::pamServiceExists("noctalia-lock")) {
723
- return "noctalia-lock";
724
725
- if (PamAuthenticator::pamServiceExists("su")) {
+ // When login stacks pam_fprintd before pam_unix (e.g. NixOS fprintAuth), use su if present.
+ if (fingerprintAuthLikelyAvailable() && PamAuthenticator::pamServiceExists("su")) {
726
return "su";
727
}
728
return "login";
0 commit comments