Styles was added

This commit is contained in:
2023-03-29 12:49:20 +02:00
parent 7a929eb757
commit 44dd3cdb58
26 changed files with 433 additions and 193 deletions

View File

@@ -7,14 +7,8 @@
#include <QFile>
#include <QDebug>
namespace {
constexpr auto GuestUserId = "2641ffe8cd4311eda27f0242ac120002";
}
BeerService::BeerService(QObject *parent)
: QObject{parent}
BeerService::BeerService()
: QObject{nullptr}
{
restoreStash();
@@ -59,8 +53,7 @@ void BeerService::connectSrv(const QString &userId)
}
QNetworkRequest request(QUrl("ws://195.133.196.161:8000"));
QString authString = QString("%1:pass").arg(userId.isEmpty() ? GuestUserId : userId);
request.setRawHeader("Authorization", "Basic " + authString.toLatin1().toBase64());
request.setRawHeader("Authorization", "Basic " + QString("%1:pass").arg(userId).toLatin1().toBase64());
m_socket.open(request);
}