aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2021-07-13 00:13:44 +0800
committerKunoiSayami <[email protected]>2021-07-13 00:13:44 +0800
commit29680c6a0ac46684ad6c6712896649f6acff737f (patch)
tree9cfc603f103345198bff5e175504c61d2b90908c /src/main.rs
parente92521c9143fb41fbb664ac6864e575fd79416b3 (diff)
feat(core): Rewritten configure file parserv3.0.0
* feat(core): Support full protect mode * feat(test): Reduced sleeping time and support new parser * feat(crate): Bump version
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index be653fc..00b52a6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -109,6 +109,7 @@ async fn cmd_authenticate_cookie(matches: &ArgMatches<'_>, cfg: Config) -> Resul
let mut bypass = false;
+ // TODO: bypass root not working properly if we select sort mode
if cfg.bypass_root && current_url.eq("/") && repo.is_empty() {
bypass = true;
}
@@ -147,7 +148,8 @@ async fn cmd_authenticate_cookie(matches: &ArgMatches<'_>, cfg: Config) -> Resul
.get::<_, String>(format!("cgit_auth_{}", cookie.get_key()))
.await
{
- log::debug!("Cookie is valid");
+ // TODO: Extend cookie ttl in each authenticate request
+ //log::debug!("Cookie is valid");
if cookie.eq_body(r.as_str()) {
if repo.is_empty() {
return Ok(true);