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

DeprecationError: the 'form_name' parameter has been replaced with the 'fields' parameter in Streamlit. #123

Closed styliann-eth closed 5 months ago

styliann-eth commented 5 months ago
Screenshot 2024-01-30 at 19 29 02

Getting the above error when I run my streamlit dashboard. Having searched through the code, I don't use 'form_name' anywhere.

Has anyone encountered that error with streamlit-authenticator?

mkhorasani commented 5 months ago

Hi @styliann-eth, the first positional parameter that you have provided as "login" is the deprecated form_name. Please use the new parameter fields if you need to customize your login form. For further information just follow the provided link in the deprecation error message.

styliann-eth commented 5 months ago

Thanks for getting back to me on this. I didn't realize that the arguments of the function had changed. Cheers.