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!
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