Explorar o código

Add emphasis to log event for 2fa disable

Kristan Kenney %!s(int64=5) %!d(string=hai) anos
pai
achega
bce2b4ffce
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bin/v-delete-user-2fa

+ 2 - 2
bin/v-delete-user-2fa

@@ -38,7 +38,7 @@ source $USER_DATA/user.conf
 
 
 # Check if 2FA is enabled
 # Check if 2FA is enabled
 if [ -z "$TWOFA" ]; then
 if [ -z "$TWOFA" ]; then
-    echo "Error: 2FA is not enabled"
+    echo "Error: two-factor authentication is not enabled"
     exit $E_NOTEXIST
     exit $E_NOTEXIST
 fi
 fi
 
 
@@ -50,7 +50,7 @@ sed -i '/QRCODE=/d' $USER_DATA/user.conf
 #                       Hestia                             #
 #                       Hestia                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
-log_history "2FA Disabled for $user"
+log_history "[WARNING] two-factor authentication disabled for $user"
 log_event "$OK" "$ARGUMENTS"
 log_event "$OK" "$ARGUMENTS"
 
 
 exit
 exit