From 648d073e1b8f4838f147c0520024bd453921a25c Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Fri, 17 Apr 2026 22:53:02 +0200 Subject: Remove signing login token It’s enough to use a safe crypto lib. But augment the token size to upper bound. --- src/model/config.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/model/config.rs') diff --git a/src/model/config.rs b/src/model/config.rs index f40b0fb..ba923d6 100644 --- a/src/model/config.rs +++ b/src/model/config.rs @@ -4,7 +4,6 @@ use std::str::FromStr; #[derive(Clone)] pub struct Config { - pub auth_secret: String, pub db_path: String, pub secure_cookies: bool, pub socket_address: SocketAddr, @@ -12,7 +11,6 @@ pub struct Config { pub fn from_env() -> Result { Ok(Config { - auth_secret: read_string("AUTH_SECRET")?, db_path: read_string("DB_PATH")?, secure_cookies: read_bool("SECURE_COOKIES")?, socket_address: read_socket_address("SOCKET_ADDRESS")?, -- cgit v1.2.3