Closed cdagher closed 1 month ago
Hi @cdagher, please try removing the st.rerun()
.
Thanks for the suggestion @mkhorasani. Unfortunately, this didn't solve the problem. Is there anything else that I can try?
Thanks for the suggestion @mkhorasani. Unfortunately, this didn't solve the problem. Is there anything else that I can try?
Update to the latest version, and supply the config file as a path to the Authenticate
class:
authenticator = stauth.Authenticate(
'../config.yaml'
)
This way you also won't need to read/write to the config file, Streamlit-Authenticator will take care of it automatically for all widgets.
That works. Thank you @mkhorasani!
Hello, I am having some trouble with the register user function. When calling
authenticator.register_user
I am unable to write the user's password toconfig.yaml
. I have some custom fields added to the config for role and organization, but have also tried this without these fields and am running into the same issue. I temporarily resorted to settingpassword
to an empty string and handling this elsewhere in the code, but this isn't a great solution. A snippet of my code is attached below:Any help would be appreciated. Thanks!