diff --git a/backend/app/__init__.py b/backend/app/__init__.py index cf7e620..b1322c9 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -8,7 +8,6 @@ def create_app(): - app = FastAPI( title="VaultSafe", version="0.2.0", @@ -26,7 +25,6 @@ def create_app(): def register_extensions(app: FastAPI): - app.add_middleware( CORSMiddleware, allow_origins=[config.FRONTEND_URL], diff --git a/backend/app/api/endpoints/User/service.py b/backend/app/api/endpoints/User/service.py index ed7427f..ea50dca 100644 --- a/backend/app/api/endpoints/User/service.py +++ b/backend/app/api/endpoints/User/service.py @@ -143,7 +143,6 @@ def login_refresh_token(db: Session, session_token: str) -> Dict[str, str]: @staticmethod def get_session_token(db: Session, user: User) -> Token: - token = crud.crud_user.get_session_token(db, db_obj=user) if not token: raise HTTPException( diff --git a/backend/requirements.txt b/backend/requirements.txt index 4ca405c..ddf323f 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,4 +1,4 @@ -alembic==1.8.1 +alembic==1.9.2 fastapi==0.85.0 gunicorn==20.1.0 itsdangerous==2.1.2