Spaces:
Runtime error
Runtime error
Yew Chong
commited on
Commit
•
f931d48
1
Parent(s):
b971c6c
add login info
Browse files- app_final.py +8 -0
app_final.py
CHANGED
@@ -230,6 +230,14 @@ if not st.session_state.get("username"):
|
|
230 |
username = st.text_input("Username:")
|
231 |
password = st.text_input("Password:", type="password")
|
232 |
login_button = st.button("Login", on_click=validate_username, args=[username, password])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
|
234 |
else:
|
235 |
if True: ## Says hello and logout
|
|
|
230 |
username = st.text_input("Username:")
|
231 |
password = st.text_input("Password:", type="password")
|
232 |
login_button = st.button("Login", on_click=validate_username, args=[username, password])
|
233 |
+
ll, rr = st.columns(2)
|
234 |
+
## TODO: Sync login info usernames to firebase, and remove this portion
|
235 |
+
ll.header("Admin Login")
|
236 |
+
ll.write("Username: admin")
|
237 |
+
ll.write("Password: admin")
|
238 |
+
rr.header("Student Login")
|
239 |
+
rr.write("Username: student1")
|
240 |
+
rr.write("Password: password")
|
241 |
|
242 |
else:
|
243 |
if True: ## Says hello and logout
|