1
0
Fork 0
mirror of https://gitlab.com/niansa/qcommsy.git synced 2025-03-06 20:53:33 +01:00
This commit is contained in:
niansa 2020-08-15 15:49:44 +02:00
parent aca04e0880
commit 6f2f703c9e
3 changed files with 5 additions and 5 deletions

View file

@ -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();
}
}

View file

@ -49,7 +49,7 @@
<set>Qt::ImhNoAutoUppercase|Qt::ImhNoPredictiveText|Qt::ImhPreferLowercase|Qt::ImhUrlCharactersOnly</set>
</property>
<property name="text">
<string>https://unterricht.sh.schulcommsy.de</string>
<string>http://localhost:1234</string>
</property>
<property name="placeholderText">
<string>Server Adresse</string>
@ -72,7 +72,7 @@
<set>Qt::ImhDigitsOnly</set>
</property>
<property name="text">
<string/>
<string>6505986</string>
</property>
<property name="maxLength">
<number>7</number>

View file

@ -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 {