Oops. Forgot to commit a change to the server Auth manager when working on the SSL crash issue on the client.

This commit is contained in:
Ken Moore
2016-06-22 20:12:16 -04:00
parent bcaf188dc1
commit 4da94971cc

View File

@@ -418,12 +418,12 @@ QString AuthorizationManager::decryptString(QString str, QByteArray key){
}
//Convert the input string into block elements as needed (and decode base64);
QList<QByteArray> blocks;
QJsonDocument doc = QJsonDocument::fromJson(str.toLocal8Bit());
if(doc.isNull()){
//QJsonDocument doc = QJsonDocument::fromJson(str.toLocal8Bit());
//if(doc.isNull()){
//No individual blocks - just one string
QByteArray bytes; bytes.append(str);
blocks << QByteArray::fromBase64(bytes);
}else if(doc.isArray()){
/*}else if(doc.isArray()){
for(int i=0; i<doc.array().count(); i++){
QByteArray bytes; bytes.append(doc.array()[i].toString());
blocks << QByteArray::fromBase64(bytes);
@@ -431,7 +431,7 @@ QString AuthorizationManager::decryptString(QString str, QByteArray key){
}else{
//Already valid JSON - return it
return str;
}
}*/
//qDebug() << "Decoded String:" << bytes;
return QString(blocks.join()); //TEMPORARY BYPASS