Bump : 0.5.3 : Fix login cookie being a chud FUCK and not persisting + support for new login system
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "server"
|
name = "server"
|
||||||
version = "0.5.2"
|
version = "0.5.3"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[target.x86_64-unknown-linux-gnu]
|
[target.x86_64-unknown-linux-gnu]
|
||||||
|
|||||||
@@ -395,7 +395,6 @@ fn cookie_for_token(token: &str, dev: bool) -> Cookie<'static> {
|
|||||||
let token = token.to_owned();
|
let token = token.to_owned();
|
||||||
let mut cookie = Cookie::build(("session", token))
|
let mut cookie = Cookie::build(("session", token))
|
||||||
.path("/")
|
.path("/")
|
||||||
.http_only(true)
|
|
||||||
.max_age(time::Duration::days(30))
|
.max_age(time::Duration::days(30))
|
||||||
.same_site(if dev {
|
.same_site(if dev {
|
||||||
axum_extra::extract::cookie::SameSite::None
|
axum_extra::extract::cookie::SameSite::None
|
||||||
|
|||||||
Reference in New Issue
Block a user