on xenial help sign in
Expose a 'passphrase' field of Components.Lockscreen to allow consumers (like the wizard) to query the password content before the user finishes. Needed to provide a proper Continue button in the welcome wizard.

I know that passphrase isn't the *best* field name, considering it works for a passcode too. But we already expose that phrase for both in the accepted() signal. So for consistency, I kept it the same. And I bumped the unity8 version, so that ubuntu-system-settings can depend on this new field. Fixes: 1383702 Approved by: Michał Sawicz

commit1951663d77bb934151e9c19e22a441d6a8d18c6a authorMichael Terry <michael.terry@canonical.com> dateThu 30 Oct 2014, 21:42 (12 years ago) parent1309cbd23bce99
4 files changed+12
debian/changelog+6 qml/Components/Lockscreen.qml+2 qml/Components/PassphraseLockscreen.qml+2 qml/Components/PinLockscreen.qml+2
debian/changelog+6
@@ -1,3 +1,9 @@
1+unity8 (8.01) UNRELEASED; urgency=medium
2+
3+ * Provide 'passphrase' as a field of Components.Lockscreen
4+
5+ -- Michael Terry <mterry@ubuntu.com> Wed, 22 Oct 2014 16:05:26 -0400
6+
17unity8 (8.00+15.04.20141030-0ubuntu1) vivid; urgency=low
28
39 [ josharenson ]
qml/Components/Lockscreen.qml+2
@@ -57,6 +57,8 @@ Showable {
5757
5858 property url background: ""
5959
60+ readonly property string passphrase: (pinPadLoader.item && pinPadLoader.item.passphrase) ? pinPadLoader.item.passphrase : ""
61+
6062 signal entered(string passphrase)
6163 signal cancel()
6264 signal emergencyCall()
qml/Components/PassphraseLockscreen.qml+2
@@ -28,6 +28,8 @@ Item {
2828 property string errorText
2929 property bool entryEnabled: true
3030
31+ readonly property string passphrase: pinentryField.text
32+
3133 signal entered(string passphrase)
3234 signal cancel()
3335
qml/Components/PinLockscreen.qml+2
@@ -35,6 +35,8 @@ Column {
3535 property int maxPinLength: -1
3636 property bool showCancelButton: true
3737
38+ readonly property string passphrase: pinentryField.text
39+
3840 signal entered(string passphrase)
3941 signal cancel()
4042