Fixed refresh missing email issue
This commit is contained in:
@@ -152,7 +152,7 @@ impl FromRequest for JwtAuth {
|
||||
Ok(result) => result,
|
||||
Err(_) => {
|
||||
return ready(Err(ActixError::from(ServiceError {
|
||||
status: 404,
|
||||
status: 401,
|
||||
message: format!("Access token was not found")
|
||||
})))
|
||||
}
|
||||
@@ -163,7 +163,7 @@ impl FromRequest for JwtAuth {
|
||||
ready(Ok(JwtAuth { token: access_token_uuid, user: user.into() }))
|
||||
}
|
||||
Err(_) => return ready(Err(ActixError::from(ServiceError {
|
||||
status: 404,
|
||||
status: 401,
|
||||
message: format!("User was not found")
|
||||
})))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user