Browse Source

Language fixes in v-check-user-2fa

Modified error strings to be more user friendly and corrected typo.
Kristan Kenney 7 years ago
parent
commit
8723c66592
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bin/v-check-user-2fa

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

@@ -36,14 +36,14 @@ source $USER_DATA/user.conf
 
 # Check if 2FA is enabled
 if [ -z "$TWOFA" ]; then
-    echo "Error: 2FA is not enabled"
+    echo "Error: Two-factor authentication is not enabled."
     exit $E_NOTEXIST
 fi
 
 # Check if token is valid
 result=$($HESTIA/php/bin/php $HESTIA/web/inc/2fa/check.php $TWOFA $token)
 if [ "$result" != "ok" ]; then
-    echo "Error: Token missmatch"
+    echo "Error: Authentication token mismatch."
     exit 9
 fi