mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Error message on mobile cloud credentials
Display proper error message when cloud credentials are incorrect. See #481 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
1fe22a28ed
commit
97b770b837
1 changed files with 6 additions and 1 deletions
|
@ -372,7 +372,12 @@ void QMLManager::checkCredentialsAndExecute(execute_function_type execute)
|
|||
}
|
||||
myTimer.stop();
|
||||
setCloudPin("");
|
||||
if (prefs.cloud_verification_status != CS_VERIFIED) {
|
||||
if (prefs.cloud_verification_status == CS_INCORRECT_USER_PASSWD) {
|
||||
appendTextToLog(QStringLiteral("Incorrect cloud credentials"));
|
||||
setStartPageText(RED_FONT + tr("Incorrect cloud credentials") + END_FONT);
|
||||
revertToNoCloudIfNeeded();
|
||||
return;
|
||||
} else if (prefs.cloud_verification_status != CS_VERIFIED) {
|
||||
// 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue