mobile-widgets: make saveCredentials() an atom

Call saveCredentials with username/password to avoid first
setting the two and then calling.

Change saveCredentials() to use newUser, newPassword.

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2019-12-21 17:33:51 +01:00 committed by Dirk Hohndel
parent e92dbe7974
commit 9117aa2a52
3 changed files with 7 additions and 6 deletions

View file

@ -167,7 +167,7 @@ public:
public slots:
void appInitialized();
void applicationStateChanged(Qt::ApplicationState state);
void saveCloudCredentials();
void saveCloudCredentials(const QString &email, const QString &password);
bool verifyCredentials(QString email, QString password, QString pin);
void tryRetrieveDataFromBackend();
void handleError(QNetworkReply::NetworkError nError);