Some random stuff tbh
This commit is contained in:
parent
a6b1b0ff76
commit
a295237863
5 changed files with 64 additions and 6 deletions
|
|
@ -99,6 +99,11 @@ pub fn refresh_token(
|
|||
return Err(RbError::AuthDuplicateRefreshToken);
|
||||
}
|
||||
|
||||
// Then we check if the user is blocked
|
||||
if user.blocked {
|
||||
return Err(RbError::AuthBlockedUser);
|
||||
}
|
||||
|
||||
// Now we check if the token has already expired
|
||||
let cur_time = Utc::now().naive_utc();
|
||||
|
||||
|
|
|
|||
Reference in a new issue