mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
fix timestamp condition #1462
This commit is contained in:
parent
7b0a09e84e
commit
4426c3176d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user