I'm want to stay in page and not return in login page,How can i do
This is login code:
if selected == "Annual Report":
username_placeholder = st.empty()
password_placeholder = st.empty()
username = username_placeholder.text_input("Username")
password = password_placeholder.text_input("Password", type="password")
login_button_placeholder = st.empty()
if login_button_placeholder.button("Log in"):
if username == VALID_USERNAME and password == VALID_PASSWORD:
# ลบช่องที่ใส่ username และ password ออก
username_placeholder.empty()
password_placeholder.empty()
login_button_placeholder.empty()