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

Use the email registered as a username #74

Closed Persevera-Asset-Management closed 12 months ago

Persevera-Asset-Management commented 12 months ago

Hi, I was wondering if it's possible to use only the email registered, instead of a username.

The complexity for the user increases, in a way that he or she has to remember two credentials.

Thank you!

Awesome library!

mkhorasani commented 12 months ago

Hi @Persevera-Asset-Management, thank you for reaching out. The user will only need his/her username and password when logging in, not email. The email is stored in case the user and admin want to reset the password and need to send the updated credentials to the user securely via email. Cheers.

Persevera-Asset-Management commented 12 months ago

Thank you, @mkhorasani!

I think I could not make myself clear, apologies.

What I meant is if it's possible to only use the email for user credentials. It would be better if the user could register only using the e-mail, name (perhaps) and password.

In today's framework, the user has to input: name, username and email.

By the way, I'm using the email for the "forget my password" as well!

mkhorasani commented 12 months ago

Oh I see, well in that case I will see if I can implement this in a future release. Thank you.

Persevera-Asset-Management commented 12 months ago

Thank you!

It would be awesome!

Is it difficult to implement?

Cheers and one more time, thank you for the library and quick answer.

mkhorasani commented 12 months ago

I'm not sure when I will be able to address it, but I don't think it would be too difficult, it's just a matter of prioritizing raised issues on GitHub. You're most welcome.