@@ -65,19 +65,28 @@ FocusScope {
6565 coverPage.hide();
6666 }
6767
68− function notifyAuthenticationSucceeded() {
68+ function notifyAuthenticationSucceeded(showFakePassword) {
69+ // When using an alternate log in mechanism like fingerprints, the
70+ // design is it looks like the user entered a passcode.
71+ if (!alphanumeric && showFakePassword) {
72+ lockscreen.showText("...."); // actual text doesn't matter, we show bullets
73+ }
6974 lockscreen.hide();
7075 }
7176
7277 function notifyAuthenticationFailed() {
78+ lockscreen.customError = "";
7379 lockscreen.clear(true);
7480 }
7581
7682 function showErrorMessage(msg) {
7783 coverPage.showErrorMessage(msg);
84+ lockscreen.customError = msg;
85+ lockscreen.clear(true);
7886 }
7987
8088 function reset() {
89+ lockscreen.customError = "";
8190 coverPage.show();
8291 }
8392
@@ -120,7 +129,10 @@ FocusScope {
120129 infoText: promptText !== "" ? i18n.tr("Enter %1").arg(promptText) :
121130 alphaNumeric ? i18n.tr("Enter passphrase") :
122131 i18n.tr("Enter passcode")
123− errorText: promptText !== "" ? i18n.tr("Sorry, incorrect %1").arg(promptText) :
132+
133+ property string customError
134+ errorText: customError !== "" ? customError :
135+ promptText !== "" ? i18n.tr("Sorry, incorrect %1").arg(promptText) :
124136 alphaNumeric ? i18n.tr("Sorry, incorrect passphrase") + "\n" +
125137 i18n.ctr("passphrase", "Please re-enter") :
126138 i18n.tr("Sorry, incorrect passcode")