diff --git a/libcommsyauth.hpp b/libcommsyauth.hpp index d03ac9a..6b7345d 100644 --- a/libcommsyauth.hpp +++ b/libcommsyauth.hpp @@ -68,8 +68,8 @@ public: auto cookies = QNetworkCookie::parseCookies(reply->rawHeader("Set-Cookie")); for (const auto& cookie : cookies) { + std::cout << '"' << cookie.name().toStdString() << "\" = \"" << cookie.value().toStdString() << '"' << std::endl; if (cookie.name() == "SID") { - std::cout << cookie.value().toStdString() << std::endl; return cookie.value(); } } diff --git a/login.ui b/login.ui index 33ac76d..0dfc327 100644 --- a/login.ui +++ b/login.ui @@ -49,7 +49,7 @@ Qt::ImhNoAutoUppercase|Qt::ImhNoPredictiveText|Qt::ImhPreferLowercase|Qt::ImhUrlCharactersOnly - https://unterricht.sh.schulcommsy.de + http://localhost:1234 Server Adresse @@ -72,7 +72,7 @@ Qt::ImhDigitsOnly - + 6505986 7 diff --git a/main.cpp b/main.cpp index dcb43cc..d0a0d55 100644 --- a/main.cpp +++ b/main.cpp @@ -149,10 +149,10 @@ void _UILoader::loginWindow(QMainWindow *w, const QString& failure) { // Connect w->connect(auther, &libCommsyAuth::reEmit, [this, thisui, w] (QNetworkReply *netReply) { - w->disconnect(auther); + auther->disconnect(); w->connect(auther, &libCommsyAuth::reEmit, [this, thisui, w] (QNetworkReply *netReply) { - w->disconnect(auther); + auther->disconnect(); // Login try {