File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,6 @@ RUN pip install -r /requirements.txt && \
27
27
apt-get autoremove && \
28
28
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
29
29
30
- # Copy the flux tree commands to the install
31
- RUN git clone --depth 1 https://github.com/flux-framework/flux-sched && \
32
- cp ./flux-sched/t/scripts/flux-tree* /usr/libexec/flux/cmd/ && \
33
- rm -rf ./flux-sched
34
-
35
30
WORKDIR /code
36
31
COPY . /code
37
32
ENTRYPOINT ["/code/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def check_auth(
51
51
db , user_name = credentials .username , password = credentials .password
52
52
)
53
53
if not user :
54
- raise HTTPException (status_code = 400 , detail = "Incorrect email or password" )
54
+ raise HTTPException (status_code = 401 , detail = "Incorrect email or password" , headers = { "WWW-Authenticate" : "Basic" } )
55
55
elif not crud_user .is_active (user ):
56
56
raise HTTPException (status_code = 400 , detail = "Inactive user" )
57
57
return credentials .username
You can’t perform that action at this time.
0 commit comments