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

Add support for logo in login function #57

Closed faisal-saddique closed 5 months ago

faisal-saddique commented 1 year ago

Hello brother Muhammad,

I made some changes to the login function in the authenticator.py file to allow users to specify a logo image for the login form. The new logo parameter accepts a URL, file path, or bytes object of the logo image, and can be used to display a custom logo in the login form.

To display the logo, I added a new _display_logo method that takes care of rendering the logo image in the appropriate location (main body or sidebar). This method is called within the login method only if a logo is provided.

I have also updated the README.md file to include information on how to use the new logo parameter in the login function.

Please let me know if there are any concerns or changes needed. Thank you for considering my contribution!

Best regards, Faisal Saddique