mkhorasani / Streamlit-Authenticator

A secure authentication module to manage user access in a Streamlit application.
Other
1.64k stars 257 forks source link

login option to NOT autocomplete #225

Open sheriffff opened 3 weeks ago

sheriffff commented 3 weeks ago

authenticator.login could receive one more param autocomplete that is passed to

username = login_form.text_input('Username' if 'Username' not in fields else fields['Username'])

mkhorasani commented 3 weeks ago

Hi @sheriffff, I'm not sure I understand what you mean. Can you please elaborate?

sheriffff commented 3 weeks ago

Sure. When I click on the text box for user name, a lot of options appear (autocomplete from the browser memory I suppose) (see img)

Generally, you can prevent this in text_input widget with the flag autocomplete

Now, can this flag autocomplete be transferred to login?

image

mkhorasani commented 3 weeks ago

Excellent point, I will fix this in the next release. Cheers!