Skip to content

Commit

Permalink
use md block
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed May 20, 2024
1 parent 85664f3 commit 99f5fc0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions UI.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import streamlit as st
from streamlit_js_eval import streamlit_js_eval, get_cookie, set_cookie
from streamlit_js_eval import get_cookie, set_cookie
import qrcode
import pyotp
import io
Expand Down Expand Up @@ -156,8 +156,12 @@ def log_out_button():
st.query_params["token"] = ""
st.session_state["token"] = ""
st.success("You have been logged out. Redirecting to login page...")
st.markdown(
f'<meta http-equiv="refresh" content="2;URL=/">',
unsafe_allow_html=True,
)
time.sleep(2)
st.rerun()
st.stop()


user = get_user()
Expand Down

0 comments on commit 99f5fc0

Please sign in to comment.