@@ -65,19 +65,28 @@ FocusScope {
65 coverPage.hide();
65 coverPage.hide();
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
69 lockscreen.hide();
74 lockscreen.hide();
72 function notifyAuthenticationFailed() {
77 function notifyAuthenticationFailed() {
78+ lockscreen.customError = "";
73 lockscreen.clear(true);
79 lockscreen.clear(true);
76 function showErrorMessage(msg) {
82 function showErrorMessage(msg) {
77 coverPage.showErrorMessage(msg);
83 coverPage.showErrorMessage(msg);
84+ lockscreen.customError = msg;
85+ lockscreen.clear(true);
80 function reset() {
88 function reset() {
89+ lockscreen.customError = "";
81 coverPage.show();
90 coverPage.show();
@@ -120,7 +129,10 @@ FocusScope {
120 infoText: promptText !== "" ? i18n.tr("Enter %1").arg(promptText) :
129 infoText: promptText !== "" ? i18n.tr("Enter %1").arg(promptText) :
121 alphaNumeric ? i18n.tr("Enter passphrase") :
130 alphaNumeric ? i18n.tr("Enter passphrase") :
122 i18n.tr("Enter passcode")
131 i18n.tr("Enter passcode")
133+ property string customError
134+ errorText: customError !== "" ? customError :
123− errorText: promptText !== "" ? i18n.tr("Sorry, incorrect %1").arg(promptText) :
135+ promptText !== "" ? i18n.tr("Sorry, incorrect %1").arg(promptText) :
124 alphaNumeric ? i18n.tr("Sorry, incorrect passphrase") + "\n" +
136 alphaNumeric ? i18n.tr("Sorry, incorrect passphrase") + "\n" +
125 i18n.ctr("passphrase", "Please re-enter") :
137 i18n.ctr("passphrase", "Please re-enter") :
126 i18n.tr("Sorry, incorrect passcode")
138 i18n.tr("Sorry, incorrect passcode")