全局中文化
This commit is contained in:
@@ -28,7 +28,7 @@ def decode_token(token: str) -> Dict[str, Any]:
|
||||
except JWTError as exc:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_401_UNAUTHORIZED,
|
||||
detail="Could not validate credentials",
|
||||
detail="无法验证登录凭据",
|
||||
headers={"WWW-Authenticate": "Bearer"},
|
||||
) from exc
|
||||
return payload
|
||||
|
||||
Reference in New Issue
Block a user