mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: generic errors
This commit is contained in:
parent
9c2332961b
commit
94f50a89a5
3 changed files with 5 additions and 8 deletions
|
|
@ -1,4 +1,3 @@
|
|||
from webbrowser import get
|
||||
from config.config import get_learnhouse_config
|
||||
from pydantic import BaseModel
|
||||
from fastapi import Depends, HTTPException, Request, status
|
||||
|
|
@ -7,7 +6,7 @@ from jose import JWTError, jwt
|
|||
from datetime import datetime, timedelta
|
||||
from src.services.users.schemas.users import AnonymousUser, PublicUser
|
||||
from src.services.users.users import security_get_user, security_verify_password
|
||||
from src.security.security import ALGORITHM, SECRET_KEY, verify_user_rights_with_roles
|
||||
from src.security.security import ALGORITHM, SECRET_KEY
|
||||
from fastapi_jwt_auth import AuthJWT
|
||||
|
||||
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/api/auth/login")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue