aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorJoris Guyonvarch2026-04-17 22:53:02 +0200
committerJoris Guyonvarch2026-04-17 22:53:02 +0200
commit648d073e1b8f4838f147c0520024bd453921a25c (patch)
tree3a477d88c3f80a68d6477d9fe5644cc475c0cd81 /src/model
parent2a6bcee45086bca9128489de19908984ea1be0da (diff)
Remove signing login token
It’s enough to use a safe crypto lib. But augment the token size to upper bound.
Diffstat (limited to 'src/model')
-rw-r--r--src/model/config.rs2
1 files changed, 0 insertions, 2 deletions
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<Config, String> {
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")?,