mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 16:32:50 -05:00
lock: terminate fprint pam session when using password
This commit is contained in:
@@ -324,6 +324,9 @@ Item {
|
|||||||
onAccepted: {
|
onAccepted: {
|
||||||
if (!demoMode && !pam.passwd.active) {
|
if (!demoMode && !pam.passwd.active) {
|
||||||
console.log("Enter pressed, starting PAM authentication")
|
console.log("Enter pressed, starting PAM authentication")
|
||||||
|
if (pam.fprint.active) {
|
||||||
|
pam.fprint.abort()
|
||||||
|
}
|
||||||
pam.passwd.start()
|
pam.passwd.start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -571,6 +574,9 @@ Item {
|
|||||||
onClicked: {
|
onClicked: {
|
||||||
if (!demoMode) {
|
if (!demoMode) {
|
||||||
console.log("Enter button clicked, starting PAM authentication")
|
console.log("Enter button clicked, starting PAM authentication")
|
||||||
|
if (pam.fprint.active) {
|
||||||
|
pam.fprint.abort()
|
||||||
|
}
|
||||||
pam.passwd.start()
|
pam.passwd.start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user