Reset_password don`t raise error

Hi, I am trying to use the reset method from streamlit, but it’s not raise erros and not return True, I don’t know how debug in this error.

This is my code:

if st.button("Restart Password"):
       result = authenticator.reset_password(st.session_state["username"], form_name='New Password')
       if result:
           st.success('Password modified successfully')
   except Exception as e:

The result variable receive None in all moments.

I dont know why, but the problem was because I was calling the function from action of st.button, when I put it out of button action, its run ok.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.