Skip to content

Commit

Permalink
Updated reachability check
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertKrajewski committed May 21, 2015
1 parent 2b9914c commit 1205324
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions logindialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void LoginDialog::run(Login *login)
QObject::connect(this, SIGNAL(rejected()), this->login, SLOT(stopLoginSlot()));

// Überprüfe Erreichbarkeit des L2P
QUrl url("https://www3.elearning.rwth-aachen.de/l2p/start/SitePages/Start.aspx");
QUrl url("https://www3.elearning.rwth-aachen.de");
QNetworkRequest request;
request.setUrl(url);

Expand All @@ -52,16 +52,14 @@ void LoginDialog::availabilitySlot(QNetworkReply * reply)

if( reply->error() )
{
QLOG_DEBUG() << tr("Fehler: L2P nicht erreichbar. Genauer Fehler: ") << reply->errorString();
}

if(response.contains("die die Kommunikation vereinfachen und verschiedene Assessment-Optionen bieten"))
{
checkForAuthentification();
response.truncate( 1000 );
QLOG_ERROR() << tr("L2P nicht erreichbar. Genauer Fehler: ") << reply->errorString();
QLOG_ERROR() << tr("Inhalt der Antwort: ") << response;
ui->statusLabel->setText(tr("Fehler: L2P nicht erreichbar."));
}
else
{
ui->statusLabel->setText(tr("Fehler: L2P nicht erreichbar."));
checkForAuthentification();
}
}

Expand Down

0 comments on commit 1205324

Please sign in to comment.