diff --git a/Dockerfile b/Dockerfile index c3fbb11..dc44988 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,11 +27,6 @@ RUN pip install -r /requirements.txt && \ apt-get autoremove && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* -# Copy the flux tree commands to the install -RUN git clone --depth 1 https://github.com/flux-framework/flux-sched && \ - cp ./flux-sched/t/scripts/flux-tree* /usr/libexec/flux/cmd/ && \ - rm -rf ./flux-sched - WORKDIR /code COPY . /code ENTRYPOINT ["/code/entrypoint.sh"] diff --git a/app/library/auth.py b/app/library/auth.py index e59944a..d247041 100644 --- a/app/library/auth.py +++ b/app/library/auth.py @@ -51,7 +51,7 @@ def check_auth( db, user_name=credentials.username, password=credentials.password ) if not user: - raise HTTPException(status_code=400, detail="Incorrect email or password") + raise HTTPException(status_code=401, detail="Incorrect email or password", headers={"WWW-Authenticate": "Basic"}) elif not crud_user.is_active(user): raise HTTPException(status_code=400, detail="Inactive user") return credentials.username