lol woops
This commit is contained in:
parent
72ac29fad7
commit
945afa0c43
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue