on xenial help sign in
Clean up when done with lockout
a21dd1bMichael Terry
qml/Greeter/Greeter.qml+4
@@ -212,6 +212,10 @@ Showable {
212 start(); // go again
212 start(); // go again
213 } else {
213 } else {
214 delayMinutes = 0;
214 delayMinutes = 0;
215+
216+ // clean up, to avoid accidentally locking user out if phone
217+ // gets time wrong for whatever reason in the future.
218+ greeterSettings.lockedOutUntil = 0;
215 }
219 }
216 }
220 }
217
221
tests/qmltests/Greeter/tst_Greeter.qml+1
@@ -475,6 +475,7 @@ Item {
475 view.responded("wr0ng p4ssw0rd");
475 view.responded("wr0ng p4ssw0rd");
476 compare(view.delayMinutes, 1);
476 compare(view.delayMinutes, 1);
477 tryCompare(view, "delayMinutes", 0);
477 tryCompare(view, "delayMinutes", 0);
478+ compare(greeterSettings.lockedOutUntil, 0);
478 }
479 }
479
480
480 function test_dbusRequestAuthenticationUser() {
481 function test_dbusRequestAuthenticationUser() {