Spaces:
Sleeping
Sleeping
Shafeek Saleem
commited on
Commit
·
051adf3
1
Parent(s):
a2b801e
ss
Browse files- utils/login.py +3 -1
utils/login.py
CHANGED
@@ -14,7 +14,9 @@ def initialize_login():
|
|
14 |
password = st.text_input("Password", type="password")
|
15 |
|
16 |
if st.button("Login"):
|
17 |
-
authorized = True
|
|
|
|
|
18 |
# authorized = authenticate(username, password)
|
19 |
if authorized["status"]:
|
20 |
st.session_state["login"] = authorized
|
|
|
14 |
password = st.text_input("Password", type="password")
|
15 |
|
16 |
if st.button("Login"):
|
17 |
+
authorized = {"status": True,
|
18 |
+
"Name": " ".join(username.split("_")),
|
19 |
+
"username": username}
|
20 |
# authorized = authenticate(username, password)
|
21 |
if authorized["status"]:
|
22 |
st.session_state["login"] = authorized
|