CLI::prompt input hidden |
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?
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 )
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...
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 )
|
Welcome Guest, Not a member yet? Register Sign In |