Welcome Guest, Not a member yet? Register   Sign In
CLI::prompt input hidden
#1

Hi,
I am creating a command to add an admin user to my system.
I am using CLI::prompt() to ask for user data, including the password.
Is there a way to hide the user input for this specific field?
Reply
#2

This might be what your looking for.

CLI: Prompt for sensitive data, like passwords, but hide input
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

It works in a way, but I don't think it's the most elegant solution....
Thanks for the suggestion anyway, I will try to find something else...
Reply
#4

Heres another one, not to much info on this out there.

Dev.to -> Reading Passwords from STDIN in PHP
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB