From 3e83994824200dfcb71beaf12ebc1afdb08419e2 Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 17 Jan 2021 01:18:48 -0600 Subject: [PATCH] Accounts: Don't use domain in cookie --- accounts/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/accounts/src/lib.rs b/accounts/src/lib.rs index 47df63c..be34986 100644 --- a/accounts/src/lib.rs +++ b/accounts/src/lib.rs @@ -59,7 +59,6 @@ pub trait Pages { #[derive(Clone)] pub struct Config { pub toolkit_path: String, - pub domain: String, pub key: Vec, pub https: bool, pub pages: Arc, @@ -94,7 +93,6 @@ pub fn state(config: &Config, db: Db) -> Result { pub fn cookie_middleware(config: &Config) -> CookieSession { CookieSession::private(&config.key) - // .domain(&config.domain) .name("accounts_scope") .secure(config.https) } @@ -115,7 +113,6 @@ impl std::fmt::Debug for Config { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("Config") .field("toolkit_path", &self.toolkit_path) - .field("domain", &self.domain) .field("key", &"Key") .field("https", &self.https) .field("pages", &"Box")