Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/common/captcha_.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def captcha_control():
st.image(data)
c1, c2 = st.columns([70, 30])
capta2_text = st.empty()
capta2_text = c1.text_input("Enter captcha text", max_chars=5)
capta2_text = c1.text_input("Enter captcha text", max_chars=5, key=st.session_state["Captcha"])
c2.markdown("##")
if c2.form_submit_button("Verify the code", type="primary"):
capta2_text = capta2_text.replace(" ", "")
Expand All @@ -247,7 +247,7 @@ def captcha_control():
st.rerun()
else:
# if the captcha is wrong, the controllo session state is set to False and the captcha is regenerated
st.error("🚨 Captch is wrong")
st.error("🚨 Captcha is wrong")
del st.session_state["Captcha"]
del st.session_state["controllo"]
st.rerun()
Expand Down