@@ -367,21 +367,27 @@ FocusScope {
367 onUnlocked: lockscreen.hide()
367 onUnlocked: lockscreen.hide()
368 onCancel: greeter.show()
368 onCancel: greeter.show()
370+ Component.onCompleted: {
371+ if (LightDM.Users.count == 1) {
370− Component.onCompleted: LightDM.Greeter.authenticate(LightDM.Users.data(0, LightDM.UserRoles.NameRole))
372+ LightDM.Greeter.authenticate(LightDM.Users.data(0, LightDM.UserRoles.NameRole))
373 Connections {
377 Connections {
374 target: LightDM.Greeter
378 target: LightDM.Greeter
376 onShowPrompt: {
380 onShowPrompt: {
381+ if (LightDM.Users.count == 1) {
377− // TODO: There's no better way for now to determine if its a PIN or a passphrase.
382+ // TODO: There's no better way for now to determine if its a PIN or a passphrase.
378− if (text == "PIN") {
383+ if (text == "PIN") {
379− lockscreen.alphaNumeric = false
384+ lockscreen.alphaNumeric = false
380− } else {
385+ } else {
381− lockscreen.alphaNumeric = true
386+ lockscreen.alphaNumeric = true
388+ lockscreen.placeholderText = i18n.tr("Please enter %1:").arg(text);
383− lockscreen.placeholderText = i18n.tr("Please enter %1:").arg(text);