1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-10-16 13:27:03 -05:00

Removed some debug code

This commit is contained in:
Sayantan Santra 2023-04-08 15:41:23 -05:00
parent 66868effba
commit b779019716
2 changed files with 1 additions and 2 deletions

View file

@ -27,7 +27,6 @@ fn check(token: Option<String>) -> bool {
.duration_since(SystemTime::UNIX_EPOCH)
.expect("Time went backwards!")
.as_secs();
println!("{:#?}", token_parts);
if token_text == "valid-session-token" && time_now < token_time + 1209600 {
// There are 1209600 seconds in 14 days
true

View file

@ -130,7 +130,7 @@ async fn main() -> std::io::Result<()> {
.service(login)
.default_service(Files::new("/", "./resources/").index_file("index.html"))
})
.bind(("0.0.0.0", 2000))?
.bind(("0.0.0.0", 4567))?
.run()
.await
}