From: Bogdan Mart Date: Sat, 13 Mar 2021 20:18:26 +0000 (+0200) Subject: fix timestamp condition #1462 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%7Bthis.state.thumbnail%7D?a=commitdiff_plain;h=4426c3176d6033c0c83be6876a694f7a6a31577d;p=lemmy.git fix timestamp condition #1462 --- diff --git a/crates/api/src/lib.rs b/crates/api/src/lib.rs index 2dbfb435..0f77da5e 100644 --- a/crates/api/src/lib.rs +++ b/crates/api/src/lib.rs @@ -132,7 +132,7 @@ pub(crate) async fn get_user_safe_settings_from_jwt( } // if user's token was issued before user's password reset. let user_validation_time = user.validator_time.timestamp_millis() / 1000; - if user_validation_time >= claims.iat { + if user_validation_time > claims.iat { return Err(ApiError::err("not_logged_in").into()); } Ok(user)