From 096f9773f0812d9713292ac2e2e1d4dc9f88ecde Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Fri, 27 Dec 2019 13:56:33 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets/qmlmanager.h') diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 14baf6dd8..12a8496e8 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -167,7 +167,7 @@ public: public slots: void appInitialized(); void applicationStateChanged(Qt::ApplicationState state); - void saveCloudCredentials(const QString &email, const QString &password); + void saveCloudCredentials(const QString &email, const QString &password, const QString &pin); bool verifyCredentials(QString email, QString password, QString pin); void tryRetrieveDataFromBackend(); void handleError(QNetworkReply::NetworkError nError); -- cgit v1.2.3-70-g09d2