Spaces:
Running
Running
remove brcrypt
Browse files- app.py +0 -15
- requirements.txt +0 -1
app.py
CHANGED
@@ -2,7 +2,6 @@ import streamlit as st
|
|
2 |
import random
|
3 |
import time
|
4 |
import hmac
|
5 |
-
import bcrypt
|
6 |
import os
|
7 |
|
8 |
st.header(" Scientific Claim Verification ")
|
@@ -26,20 +25,6 @@ def check_password():
|
|
26 |
del st.session_state["password"] # Remove credentials from session
|
27 |
del st.session_state["username"]
|
28 |
return
|
29 |
-
|
30 |
-
# if st.session_state["username"] in st.secrets["passwords"]:
|
31 |
-
# stored_hashed_password = st.secrets["passwords"][st.session_state["username"]] # Retrieved as a string
|
32 |
-
|
33 |
-
# # Convert hashed password back to bytes if it's stored as a string
|
34 |
-
# if isinstance(stored_hashed_password, str):
|
35 |
-
# stored_hashed_password = stored_hashed_password.encode()
|
36 |
-
|
37 |
-
# # Compare user-entered password (encoded) with stored hash
|
38 |
-
# if bcrypt.checkpw(st.session_state["password"].encode(), stored_hashed_password):
|
39 |
-
# st.session_state["password_correct"] = True
|
40 |
-
# del st.session_state["password"] # Remove credentials from session
|
41 |
-
# del st.session_state["username"]
|
42 |
-
# return
|
43 |
|
44 |
# If authentication fails
|
45 |
st.session_state["password_correct"] = False
|
|
|
2 |
import random
|
3 |
import time
|
4 |
import hmac
|
|
|
5 |
import os
|
6 |
|
7 |
st.header(" Scientific Claim Verification ")
|
|
|
25 |
del st.session_state["password"] # Remove credentials from session
|
26 |
del st.session_state["username"]
|
27 |
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
# If authentication fails
|
30 |
st.session_state["password_correct"] = False
|
requirements.txt
CHANGED
@@ -1 +0,0 @@
|
|
1 |
-
bcrypt==4.2.1
|
|
|
|