From 2fa05367433f40b3c32ce21df5ec81d8148dd6f7 Mon Sep 17 00:00:00 2001 From: Ye Jingchen Date: Thu, 16 Mar 2017 20:01:04 +0800 Subject: [PATCH 1/2] disabled password echoing --- lib/user.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/user.sh b/lib/user.sh index 347eca3..ade83c2 100755 --- a/lib/user.sh +++ b/lib/user.sh @@ -42,14 +42,14 @@ case "$1" in add) read -p "username: " username - read -p "password: " password + read -p "password: " -s password edituser $username $password ;; edit) users=$(getall) read -p "username [ ${users}]: " username - read -p "password: " password + read -p "password: " -s password edituser $username $password ;; From 2e6992d954f0b34e77ccccc10966697a7f743c8e Mon Sep 17 00:00:00 2001 From: Ye Jingchen Date: Thu, 16 Mar 2017 20:01:04 +0800 Subject: [PATCH 2/2] disabled password echoing --- lib/user.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/user.sh b/lib/user.sh index 347eca3..c1d7691 100755 --- a/lib/user.sh +++ b/lib/user.sh @@ -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 ;;