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.

Approved by PS Jenkins bot, Mirco Müller.

commit5a3f9f421feef6470844ead11a191fcb5ffb1a7a authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 18 Dec 2013, 20:09 (13 years ago) parentf324b9c529db5e
2 files changed+3−2
qml/Greeter/Lockscreen.qml+2−2 qml/Shell.qml+1
qml/Greeter/Lockscreen.qml+2−2
@@ -30,9 +30,9 @@ Showable {
3030 // In case the Lockscreen can show a greeter message, this is the username
3131 property string username: ""
3232
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.
3434 // 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
3636
3737 property url background: ""
3838
qml/Shell.qml+1
@@ -413,6 +413,7 @@ FocusScope {
413413 width: parent.width
414414 height: parent.height - panel.panelHeight
415415 background: shell.background
416+ pinLength: 4
416417
417418 onEntered: LightDM.Greeter.respond(passphrase);
418419 onCancel: greeter.show()