Styles was added
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user