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 feb0e07 commit bd5f1a2Copy full SHA for bd5f1a2
bin/v-log-user-login
@@ -8,6 +8,10 @@ ip=$2
8
status=$3
9
fingerprint=${4}
10
11
+active="yes"
12
+if [ $status = "failed" ]; then
13
+ active="no"
14
+fi
15
16
# Includes
17
source $HESTIA/func/main.sh
@@ -38,7 +42,7 @@ fi
38
42
39
43
awk -i inplace -v finger="FINGERPRINT='$fingerprint'" -v active="ACTIVE='no'" '$2 == TIME {$5=ACTIVE}1' $USER_DATA/auth.log
40
44
41
-echo "IP='$ip' FINGERPRINT='$fingerprint' STATUS='$status' DATE='$date' TIME='$time' ACTIVE='yes'" >> $USER_DATA/auth.log
45
+echo "IP='$ip' FINGERPRINT='$fingerprint' STATUS='$status' DATE='$date' TIME='$time' ACTIVE='$active'" >> $USER_DATA/auth.log
46
47
#----------------------------------------------------------#
48
# Hestia #
0 commit comments