mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Hardening password checks
This commit is contained in:
parent
ffdae1dca1
commit
3fdee2975d
4 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue