mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
ad1c3892f9
commit
096f9773f0
3 changed files with 6 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue