lol woops

This commit is contained in:
Hamcha 2023-07-01 20:57:50 +02:00
parent 72ac29fad7
commit 945afa0c43
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89

View file

@ -183,7 +183,6 @@ impl FromRequestParts<Arc<AppState>> for RequireSession {
match Session::find(&state.database, session_id).await? { match Session::find(&state.database, session_id).await? {
None => Err(INVALID_SESSION), None => Err(INVALID_SESSION),
Some((session, user)) => { Some((session, user)) => {
println!("{:?}<{:?}", session.expires_at, Utc::now().naive_utc());
if session.secret != session_secret { if session.secret != session_secret {
return Err(INVALID_SESSION); return Err(INVALID_SESSION);
} }