mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user