From ddf138ab9967abf5a36fdbaef0ddcdabbcb7febd Mon Sep 17 00:00:00 2001 From: Imbus Date: Tue, 14 Nov 2023 14:02:42 +0100 Subject: [PATCH] Cleaning --- server/src/jwt.rs | 4 ++-- server/src/main.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/jwt.rs b/server/src/jwt.rs index d603c4d..f171efe 100755 --- a/server/src/jwt.rs +++ b/server/src/jwt.rs @@ -24,8 +24,8 @@ pub fn token_factory(user: &str) -> JwtResult { &Header::default(), &Claims { sub: user.to_string(), - iss: "localhost".to_string(), - aud: "localhost".to_string(), + iss: "frostbyte".to_string(), + aud: "frostbyte".to_string(), iat: chrono::Utc::now().timestamp() as usize, exp: (chrono::Utc::now() + chrono::Duration::days(DAYS_VALID)).timestamp() as usize, }, diff --git a/server/src/main.rs b/server/src/main.rs index c7ca643..3ed8abd 100755 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1,4 +1,3 @@ -// #![allow(unused_imports, dead_code, unused_variables, unused_mut)] use actix_files::Files; use actix_web::middleware; use actix_web::web::Data;