mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
longer salt
This commit is contained in:
parent
77f0aa6d8a
commit
26360cad99
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ fi
|
|||
|
||||
# Parsing user's salt
|
||||
salt=$(grep "^$user:" /etc/shadow |cut -f 3 -d \$)
|
||||
if [[ -z "$salt" ]] || [[ "${#salt}" -gt 8 ]]; then
|
||||
if [[ -z "$salt" ]] || [[ "${#salt}" -gt 12 ]]; then
|
||||
echo "Error: password missmatch"
|
||||
echo "$DATE $user $ip failed to login" >> $VESTA/log/auth.log
|
||||
exit 9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue