mirror of
https://gitlab.com/niansa/qcommsy.git
synced 2025-03-06 20:53:33 +01:00
Updated
This commit is contained in:
parent
9ae87b4943
commit
aca04e0880
1 changed files with 4 additions and 2 deletions
6
main.cpp
6
main.cpp
|
@ -47,6 +47,7 @@ public:
|
|||
}
|
||||
cacheInvalidate = false;
|
||||
// Connect to commsy
|
||||
std::cout << "Connecting using: " << settings->value("server_url").toString().toStdString() << "..." << std::endl;
|
||||
connector = new libCommsy(settings->value("server_url").toString().toStdString(), settings->value("server_sid").toString().toStdString(), settings->value("server_room").toString().toStdString());
|
||||
}
|
||||
|
||||
|
@ -148,10 +149,11 @@ void _UILoader::loginWindow(QMainWindow *w, const QString& failure) {
|
|||
|
||||
// Connect
|
||||
w->connect(auther, &libCommsyAuth::reEmit, [this, thisui, w] (QNetworkReply *netReply) {
|
||||
std::cout << auther->getAuthUrl(netReply).toStdString() << std::endl;
|
||||
// Get SID
|
||||
w->disconnect(auther);
|
||||
|
||||
w->connect(auther, &libCommsyAuth::reEmit, [this, thisui, w] (QNetworkReply *netReply) {
|
||||
w->disconnect(auther);
|
||||
|
||||
// Login
|
||||
try {
|
||||
settings->setValue("server_sid", auther->getSID(netReply));
|
||||
|
|
Loading…
Add table
Reference in a new issue