on xenial help sign in
Skip password wizard screen if the user already has a password
commita3524983824e037b640cc4737e01ac964bd5580e authorMichael Terry <michael.terry@canonical.com> dateThu 7 Jan 2016, 15:14 (11 years ago) parent88c6f00
1 file changed+5
qml/Wizard/Pages/30-passwd-type.qml+5
qml/Wizard/Pages/30-passwd-type.qml+5
@@ -39,6 +39,11 @@ LocalComponents.Page {
3939 title: i18n.tr("Lock security")
4040 forwardButtonSourceComponent: forwardButton
4141
42+ // If the user has set a password some other way (via ubuntu-device-flash
43+ // or this isn't the first time the wizard has been run, etc). We can't
44+ // properly set the password again, so let's not pretend we can.
45+ skip: securityPrivacy.securityType !== UbuntuSecurityPrivacyPanel.Swipe
46+
4247 function indexToMethod(index) {
4348 if (index === 0)
4449 return UbuntuSecurityPrivacyPanel.Swipe