Closed vkyprmr closed 3 months ago
Dear @vkyprmr what you can do to implement this workflow is to modify your code as follows:
# Reset password
if authenticator.reset_password(username):
new_pwd = authenticator.credentials["usernames"][username]["password"]
with open("streamlit-app/st-cache/credentials.yaml", "w",
encoding="utf-8") as cf:
yaml.dump(credentials, cf)
st.success("Password successfully reset", icon="✔")
authenticator.logout(location='unrendered')
Thanks for the update👍🏽
I have the following code:
On
reset_pasword
, the user does not get logged out. Can I have it such that the user gets logged out and has to log in again? If it is supposed to happen, am I doing something wrong?