Spaces:
Runtime error
Runtime error
this
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def Login():
|
|
53 |
for anyuser in allusers:
|
54 |
if username == anyuser["username"] and password == anyuser["password"]:
|
55 |
st.success("You are logged in")
|
56 |
-
st.session_state["
|
57 |
st.experimental_rerun()
|
58 |
else:
|
59 |
st.error("Your username or password do not match")
|
@@ -61,7 +61,7 @@ def Login():
|
|
61 |
|
62 |
|
63 |
def main():
|
64 |
-
if st.session_state["
|
65 |
with st.sidebar:
|
66 |
selected = option_menu("Menu", ["Login", "Signup"], icons = ["house", "person"])
|
67 |
if selected == "Login":
|
|
|
53 |
for anyuser in allusers:
|
54 |
if username == anyuser["username"] and password == anyuser["password"]:
|
55 |
st.success("You are logged in")
|
56 |
+
st.session_state["user"] = "isuser"
|
57 |
st.experimental_rerun()
|
58 |
else:
|
59 |
st.error("Your username or password do not match")
|
|
|
61 |
|
62 |
|
63 |
def main():
|
64 |
+
if st.session_state["user"] == "Guest":
|
65 |
with st.sidebar:
|
66 |
selected = option_menu("Menu", ["Login", "Signup"], icons = ["house", "person"])
|
67 |
if selected == "Login":
|