on xenial help sign in
Change the default behaviour of the Lockscreen to have a variable PIN length, requiring the user to confirm with OK.
5a3f9f4Michael Zanetti
qml/Greeter/Lockscreen.qml+2−2
@@ -30,9 +30,9 @@ Showable {
30 // In case the Lockscreen can show a greeter message, this is the username
30 // In case the Lockscreen can show a greeter message, this is the username
31 property string username: ""
31 property string username: ""
32
32
33− // As the numeric PIN pad doesn't have a OK button by design, we need to auto-confirm on a certain length.
33+ // Set this to a value greater 0 to enable auto-confirm behavior for the lockscreen.
34 // This is ignored by the alphaNumeric lockscreen as that one is confirmed with pressing enter on the OSK.
34 // This is ignored by the alphaNumeric lockscreen as that one is confirmed with pressing enter on the OSK.
35− property int pinLength: 4
35+ property int pinLength: -1
36
36
37 property url background: ""
37 property url background: ""
38
38
qml/Shell.qml+1
@@ -413,6 +413,7 @@ FocusScope {
413 width: parent.width
413 width: parent.width
414 height: parent.height - panel.panelHeight
414 height: parent.height - panel.panelHeight
415 background: shell.background
415 background: shell.background
416+ pinLength: 4
416
417
417 onEntered: LightDM.Greeter.respond(passphrase);
418 onEntered: LightDM.Greeter.respond(passphrase);
418 onCancel: greeter.show()
419 onCancel: greeter.show()