misc fixes

This commit is contained in:
Aiden McClelland
2021-09-01 16:14:31 -06:00
parent 6afcf0d318
commit f4357eb8f4
5 changed files with 12 additions and 8 deletions

View File

@@ -117,7 +117,7 @@ pub async fn login(
res.headers.insert(
"set-cookie",
HeaderValue::from_str(&format!(
"session={}; SameSite=Strict; Expires=Fri, 31 Dec 9999 23:59:59 GMT;",
"session={}; SameSite=Lax; Expires=Fri, 31 Dec 9999 23:59:59 GMT;",
token
))
.with_kind(crate::ErrorKind::Unknown)?, // Should be impossible, but don't want to panic