mkhorasani / Streamlit-Authenticator

A secure authentication module to validate user credentials in a Streamlit application.
Apache License 2.0
1.38k stars 229 forks source link

Not able to create a new account using register_user #41

Closed poojanaik08 closed 1 year ago

poojanaik08 commented 1 year ago

I am new to streamlit. I want to have a login and signup functionality in my application. I am able to successfully implement login using the username and password stored in the config.yaml file. However, I am not able to properly implement the register_user or reset/update the password. The program runs smoothly and I get the 'registration successful' message but when I try to log in using the new credentials I get the 'incorrect username/password' error.

image

image

mkhorasani commented 1 year ago

Please ensure you are resaving the newly registered credentials in the config file as shown below:


with open('../config.yaml', 'w') as file:
    yaml.dump(config, file, default_flow_style=False)
poojanaik08 commented 1 year ago

It worked, thank you so much!