Accounts: Don't use domain in cookie

This commit is contained in:
asonix 2021-01-17 01:18:48 -06:00
parent e42aa27d12
commit 3e83994824

View file

@ -59,7 +59,6 @@ pub trait Pages {
#[derive(Clone)]
pub struct Config {
pub toolkit_path: String,
pub domain: String,
pub key: Vec<u8>,
pub https: bool,
pub pages: Arc<dyn Pages + Send + Sync>,
@ -94,7 +93,6 @@ pub fn state(config: &Config, db: Db) -> Result<State, store::StoreError> {
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<dyn Pages>")