mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
QML UI: don't proceed unless cloud credentials are verified
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1df085240d
commit
f7daadb1cd
1 changed files with 12 additions and 0 deletions
|
@ -370,6 +370,18 @@ void QMLManager::retrieveUserid()
|
|||
revertToNoCloudIfNeeded();
|
||||
return;
|
||||
}
|
||||
if (prefs.cloud_verification_status == CS_NEED_TO_VERIFY) {
|
||||
// here we need to enter the PIN
|
||||
appendTextToLog(QStringLiteral("Need to verify the email address - enter PIN in desktop app"));
|
||||
setStartPageText(RED_FONT + tr("Cannot connect to cloud storage - cloud account not verified") + END_FONT);
|
||||
revertToNoCloudIfNeeded();
|
||||
return;
|
||||
} else if (prefs.cloud_verification_status != CS_VERIFIED) {
|
||||
appendTextToLog(QString("Cloud account verification failed - status %1").arg(prefs.cloud_verification_status));
|
||||
setStartPageText(RED_FONT + tr("Cannot connect to cloud storage - check developer log") + END_FONT);
|
||||
revertToNoCloudIfNeeded();
|
||||
return;
|
||||
}
|
||||
setCredentialStatus(VALID);
|
||||
QString userid(prefs.userid);
|
||||
if (userid.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue