mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
cloudstorage: handle invalid PIN correctly
If the server tells us that the PIN is invalid, we need to continue to ask for a PIN. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9c4782fa5c
commit
6f20d1a208
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ void CloudStorageAuthenticate::uploadFinished()
|
||||||
nw->hideNotification();
|
nw->hideNotification();
|
||||||
*/
|
*/
|
||||||
myLastError.clear();
|
myLastError.clear();
|
||||||
} else if (cloudAuthReply == QLatin1String("[VERIFY]")) {
|
} else if (cloudAuthReply == QLatin1String("[VERIFY]") ||
|
||||||
|
cloudAuthReply == QLatin1String("Invalid PIN")) {
|
||||||
csSettings.setVerificationStatus(CS_NEED_TO_VERIFY);
|
csSettings.setVerificationStatus(CS_NEED_TO_VERIFY);
|
||||||
report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences")));
|
report_error(qPrintable(tr("Cloud account verification required, enter PIN in preferences")));
|
||||||
} else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) {
|
} else if (cloudAuthReply == QLatin1String("[PASSWDCHANGED]")) {
|
||||||
|
|
Loading…
Reference in a new issue