mirror of
https://gitlab.com/niansa/qcommsy.git
synced 2025-03-06 20:53:33 +01:00
updated
This commit is contained in:
parent
aca04e0880
commit
6f2f703c9e
3 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
4
login.ui
4
login.ui
|
@ -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>
|
||||
|
|
4
main.cpp
4
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue