We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d14b7d9 commit 73e6656Copy full SHA for 73e6656
bin/v-check-user-hash
@@ -75,15 +75,15 @@ else
75
method='des'
76
fi
77
78
+# Checking salt
79
if [ -z "$salt" ]; then
80
echo "Error: password missmatch"
81
echo "$date $time $user $ip failed to login" >> $VESTA/log/auth.log
82
exit 9
83
84
-# Checking hash
85
-result=$(grep "^$user:$hash:" /etc/shadow 2>/dev/null)
86
-if [[ -z "$result" ]]; then
+# Comparing hashes
+if [[ "$shadow" != "$hash" ]]; then
87
88
89
0 commit comments