Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -83,16 +83,17 @@ def user_login_create():
|
|
83 |
global TBYB_LOGO
|
84 |
global USER_LOGGED_IN
|
85 |
users = None
|
86 |
-
with
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
96 |
with st.sidebar:
|
97 |
st.image(TBYB_LOGO, width=70)
|
98 |
loginTab, registerTab, detailsTab = st.tabs(["Log in", "Register", "Account details"])
|
|
|
83 |
global TBYB_LOGO
|
84 |
global USER_LOGGED_IN
|
85 |
users = None
|
86 |
+
with USER_DATABASE_UPDATE_SCHEDULER.lock:
|
87 |
+
with open(USER_DATABASE_PATH) as file:
|
88 |
+
users = yaml.load(file, Loader=SafeLoader)
|
89 |
+
AUTHENTICATOR = stauth.Authenticate(
|
90 |
+
users['credentials'],
|
91 |
+
users['cookie']['name'],
|
92 |
+
users['cookie']['key'],
|
93 |
+
users['cookie']['expiry_days'],
|
94 |
+
users['preauthorized']
|
95 |
+
)
|
96 |
+
|
97 |
with st.sidebar:
|
98 |
st.image(TBYB_LOGO, width=70)
|
99 |
loginTab, registerTab, detailsTab = st.tabs(["Log in", "Register", "Account details"])
|