Hardening password checks

This commit is contained in:
Serghey Rodin 2018-04-08 21:50:32 +03:00
commit 3fdee2975d
4 changed files with 6 additions and 4 deletions

View file

@ -82,7 +82,7 @@ if [ -z "$salt" ]; then
fi
# Generating hash
hash=$($BIN/v-generate-password-hash $method $salt <<< $password)
hash=$($BIN/v-generate-password-hash $method $salt <<< "$password")
if [[ -z "$hash" ]]; then
echo "Error: password missmatch"
echo "$date $time $user $ip failed to login" >> $VESTA/log/auth.log