Skip to content

Commit

Permalink
Merge pull request #83 from GrGLeo/82-fixing-error-on-login-failed
Browse files Browse the repository at this point in the history
added more file type. and fix login error
  • Loading branch information
GrGLeo authored Nov 21, 2024
2 parents d91d31c + 2b4821c commit 6d5fd11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/front_pages/3_Upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

uploaded_file = st.file_uploader("Choose a file", type=['fit', 'fits'])

app_type = ["application/fit", "application/fits", "image/fit", "image/fits"]
app_type = ["application/fit", "application/fits", "image/fit", "image/fits", "application/octet-stream"]

if uploaded_file is not None:
token = st.session_state["user_token"]["token"]
Expand Down
2 changes: 1 addition & 1 deletion front/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def auth_user(username, password):
token = response.json()
return True, token
elif response.status_code != 200:
return False, response.json()
return False, response.text


def create_user(username, password, email):
Expand Down

0 comments on commit 6d5fd11

Please sign in to comment.