aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-27 13:56:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-28 08:34:56 -0800
commit096f9773f0812d9713292ac2e2e1d4dc9f88ecde (patch)
treeb78ec9400cbc32316784b7532591444e4a18a9f1 /mobile-widgets/qml
parentad1c3892f97fd1a95398182974397682e2c5521c (diff)
downloadsubsurface-096f9773f0812d9713292ac2e2e1d4dc9f88ecde.tar.gz
mobile-widgets: make saveCredentials() an atom
Add pin parameter to saveCredentials() thereby having all info about credentials in one function call. Add "" as pin in saveCredentials() - main.qml, when verifying credentials. replace verifyCredentials() with saveCredentials() in the register button on the pin page. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/CloudCredentials.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml
index 351c25d1d..cbf3bac46 100644
--- a/mobile-widgets/qml/CloudCredentials.qml
+++ b/mobile-widgets/qml/CloudCredentials.qml
@@ -98,7 +98,7 @@ Item {
id: registerpin
text: qsTr("Register")
onClicked: {
- verifyCredentials(login.text, password.text, pin.text)
+ manager.saveCloudCredentials(login.text, password.text, pin.text)
}
}
Controls.Label {
@@ -127,7 +127,7 @@ Item {
id: signin_register_normal
text: qsTr("Sign-in or Register")
onClicked: {
- manager.saveCloudCredentials(login.text, password.text)
+ manager.saveCloudCredentials(login.text, password.text, "")
}
}
Controls.Label {