mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Display session validation result
This commit is contained in:
parent
b7330130fb
commit
0ebe5bc3cf
@ -99,11 +99,12 @@ async fn login(opt: Opt, ignore: Gitignore) -> Result<ILIAS> {
|
|||||||
.context("failed to load previous session")
|
.context("failed to load previous session")
|
||||||
{
|
{
|
||||||
Ok(ilias) => {
|
Ok(ilias) => {
|
||||||
info!("checking session validity..");
|
info!("Checking session validity..");
|
||||||
// TODO: this probably isn't the best solution..
|
// TODO: this probably isn't the best solution..
|
||||||
if let Err(e) = ilias.get_html(DEFAULT_SYNC_URL).await {
|
if let Err(e) = ilias.get_html(DEFAULT_SYNC_URL).await {
|
||||||
error!(e)
|
error!(e)
|
||||||
} else {
|
} else {
|
||||||
|
success!("Session still active!");
|
||||||
return Ok(ilias)
|
return Ok(ilias)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user