Skip to content
Snippets Groups Projects

Fixed invalid MEP credentials response

Merged Martin Straka requested to merge fix-mep-login into develop
Viewing commit 7cc0b250
Prev
Show latest version
2 files
+ 6
7
Preferences
Compare changes
Files
2
@@ -295,9 +295,9 @@ QString mepErrorDescription(const QByteArray &resCode) {
QString txt = "Unspecified MEP error.";
if (resCode == MEP_ERROR_USER_NOT_EXISTS) {
txt = "Wrong login credentials. Username does not exists.";
txt = "Wrong login credentials. Username doesn't exist.";
} else if (resCode == MEP_ERROR_USER_NOT_SET) {
txt = "Wrong login credentials. Username or valid communication code was not set.";
txt = "Wrong login credentials. Username or valid communication code hasn't been set.";
}
return txt;
}
@@ -502,6 +502,9 @@ QString Isds::Connection::errorDescription(enum ErrCode errCode)
case ERR_NO_CONNECTION:
txt = tr("Internet connection is probably not available. Check your network settings.");
break;
case ERR_BAD_REQUEST:
txt = tr("Authorization failed. Server complains about a bad request.");
break;
case ERR_REPLY:
txt = tr("Error reply.");
break;
@@ -523,9 +526,6 @@ QString Isds::Connection::errorDescription(enum ErrCode errCode)
case ERR_UNAUTHORIZED_TOTP_SMS:
txt = tr("SMS authorization failed. SMS code couldn't be sent. Your order on premium SMS has been exhausted or cancelled.");
break;
case ERR_BAD_REQUEST:
txt = tr("Authorization failed or bad request due to malformed syntax.");
break;
case ERR_UNSPECIFIED:
default:
txt = tr("An communication error. See log for more detail.");