From 4426c3176d6033c0c83be6876a694f7a6a31577d Mon Sep 17 00:00:00 2001
From: Bogdan Mart <mart.bogdan@gmail.com>
Date: Sat, 13 Mar 2021 22:18:26 +0200
Subject: [PATCH] fix timestamp condition #1462

---
 crates/api/src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.44.1