fredrik-corneliusson/click-web

ADD: support for password inputs

Closed this issue · 5 comments

Could be cool to implement password inputs, like here.

I'm going to see if I can figure it out looking at the click_inputs file

Sounds great,
Will probably be hard to support the interactive prompt feature in click as the actual click process is just initialized with the arguments and the stdout is just streamed to the web process.
If you are ok with just having an password field in the browser take a look at how EmailInput is done.
https://github.com/fredrik-corneliusson/click-web/blob/master/click_web/resources/input_fields.py#L252

You can probably do something similar but instead of type_attrs['type'] = 'email' use type_attrs['type'] = 'password'

I just noticed this issue looking back. I managed to get it working on my end, would you like me to make a PR?

Sorry for the late reply.
Sure, that would be great.

Now implemented.

Nice!