How to add a password?

Hi,
My question is simple. How can I manage a password ?
I would like to add a password in my code:

    pswd = 'TTTTT'
    if st.button("Mise à jour des données"):
        st.cache_data.clear()
        code : Input login/password here 
        if code==pswd:
             process here
        else:
             print('No code')
        ...

I am the only one that knows the password.

Thanks

pwd = st.text_input('input your password', type='password')

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