Skip to content

Commit

Permalink
Merge pull request #60 from yejingchen/noecho-pw
Browse files Browse the repository at this point in the history
disabled password echoing
  • Loading branch information
zenozeng authored Mar 16, 2017
2 parents 794113d + dba5a57 commit c0ed200
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ case "$1" in

add)
read -p "username: " username
read -p "password: " password
read -p "password: " -s password
echo
edituser $username $password
;;

edit)
users=$(getall)
read -p "username [ ${users}]: " username
read -p "password: " password
read -p "password: " -s password
echo
edituser $username $password
;;

Expand Down

0 comments on commit c0ed200

Please sign in to comment.