Update Marks PR after the Promo code has been merged

This commit is contained in:
DL6ER 2017-05-04 11:43:48 +02:00
parent 7c2046cce7
commit 9cc392fa02
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 15 additions and 9 deletions

View File

@ -88,6 +88,10 @@ SetWebPassword(){
exit 1
fi
if (( ${#args[2]} > 0 )) ; then
readonly PASSWORD="${args[2]}"
readonly CONFIRM="${PASSWORD}"
else
read -s -p "Enter New Password (Blank for no password): " PASSWORD
echo ""
@ -99,6 +103,8 @@ SetWebPassword(){
read -s -p "Confirm Password: " CONFIRM
echo ""
fi
if [ "${PASSWORD}" == "${CONFIRM}" ] ; then
hash=$(HashPassword ${PASSWORD})
# Save hash to file