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

Return user email, Name for new user #35

Closed psyrixen closed 5 months ago

psyrixen commented 1 year ago

Hi, Is there a way that we can get the email address and the name of the newly registered user without modifying the package code. Currently is returns if a new user has successfully created account or not.

mkhorasani commented 1 year ago

Hi @psyrixen, this is an excellent point. I will try to implement it in a future release. In the meantime, feel free to edit line 347 of authenticate.py to enable this feature. Should be relatively straight forward. Cheers.

psyrixen commented 1 year ago

Hi,

Thanks for the quick answer. Also, can you please also include the option to clear the forms after submission. I know its just a small addition but will improve the behavior of the component vastly. Currently the forms don't clear after the form is submitted.

Much thanks again for this awesome component. Really appreciate it!

Have a good day

mkhorasani commented 1 year ago

@psyrixen sure will do that too. Stay posted!

mkhorasani commented 5 months ago

Hi @psyrixen, this feature has been implemented in release v0.3.1. The register_user widget now returns all these values.