forked from Shinonome/dots-hyprland
lock: use default pam config and start without password (#1891)
This commit is contained in:
@@ -33,8 +33,6 @@ Scope {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function tryUnlock() {
|
function tryUnlock() {
|
||||||
if (currentText === "") return;
|
|
||||||
|
|
||||||
root.unlockInProgress = true;
|
root.unlockInProgress = true;
|
||||||
pam.start();
|
pam.start();
|
||||||
}
|
}
|
||||||
@@ -42,12 +40,6 @@ Scope {
|
|||||||
PamContext {
|
PamContext {
|
||||||
id: pam
|
id: pam
|
||||||
|
|
||||||
// Its best to have a custom pam config for quickshell, as the system one
|
|
||||||
// might not be what your interface expects, and break in some way.
|
|
||||||
// This particular example only supports passwords.
|
|
||||||
configDirectory: "pam"
|
|
||||||
config: "password.conf"
|
|
||||||
|
|
||||||
// pam_unix will ask for a response for the password prompt
|
// pam_unix will ask for a response for the password prompt
|
||||||
onPamMessage: {
|
onPamMessage: {
|
||||||
if (this.responseRequired) {
|
if (this.responseRequired) {
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ MouseArea {
|
|||||||
id: confirmButton
|
id: confirmButton
|
||||||
implicitWidth: height
|
implicitWidth: height
|
||||||
toggled: true
|
toggled: true
|
||||||
enabled: !root.context.unlockInProgress && root.context.currentText.length > 0
|
enabled: !root.context.unlockInProgress
|
||||||
colBackgroundToggled: Appearance.colors.colPrimary
|
colBackgroundToggled: Appearance.colors.colPrimary
|
||||||
|
|
||||||
onClicked: root.context.tryUnlock()
|
onClicked: root.context.tryUnlock()
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
auth required pam_unix.so
|
|
||||||
Reference in New Issue
Block a user