mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 09:51:01 +00:00
fix timestamp condition #1462
This commit is contained in:
parent
7b0a09e84e
commit
4426c3176d
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
// if user's token was issued before user's password reset.
|
||||||
let user_validation_time = user.validator_time.timestamp_millis() / 1000;
|
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());
|
return Err(ApiError::err("not_logged_in").into());
|
||||||
}
|
}
|
||||||
Ok(user)
|
Ok(user)
|
||||||
|
|
Loading…
Reference in a new issue