Skip to content

Commit

Permalink
Remove accidental stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyToor committed Nov 24, 2024
1 parent 2e537ee commit c9f82b1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions backend/src/api/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,6 @@ async fn login_post(
for cookie in cookies.iter() {
println!("Post-Cookie: {} = {}", cookie.name(), cookie.value());
}
for cookie in cookies.iter_private() {
println!("Post-Private-Cookie: {} = {}", cookie.name(), cookie.value());
}


if state != login_cookie.csrf_state {
Expand Down Expand Up @@ -438,7 +435,7 @@ fn login_pre(cookies: &CookieJar<'_>, oauth: &State<BasicClient>) -> Result<Redi
})?,
)
.expires(OffsetDateTime::now_utc() + Duration::from_secs(5 * 60))
.same_site(SameSite::None)
.same_site(SameSite::Lax)
.path("/")
.secure(true)
.finish();
Expand All @@ -453,11 +450,11 @@ fn login_pre(cookies: &CookieJar<'_>, oauth: &State<BasicClient>) -> Result<Redi
for cookie in cookies.iter() {
println!("Pre-Cookie: {} = {}", cookie.name(), cookie.value());
}
for cookie in cookies.iter_private() {
println!("Pre-Private-Cookie: {} = {}", cookie.name(), cookie.value());
}
if let Some(cookie) = cookies.get_private(LOGIN_COOKIE) {
println!("Private login_cookie found. value: {}", cookie.value());
println!("#login_pre:Private login_cookie found. value: {}", cookie.value());
}
else {
println!("#login_pre: Private login_cookie not found.");
}


Expand Down

0 comments on commit c9f82b1

Please sign in to comment.