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.
2 parents 7473d16 + 8723c66 commit fdeba40Copy full SHA for fdeba40
bin/v-check-user-2fa
@@ -36,14 +36,14 @@ source $USER_DATA/user.conf
36
37
# Check if 2FA is enabled
38
if [ -z "$TWOFA" ]; then
39
- echo "Error: 2FA is not enabled"
+ echo "Error: Two-factor authentication is not enabled."
40
exit $E_NOTEXIST
41
fi
42
43
# Check if token is valid
44
result=$($HESTIA/php/bin/php $HESTIA/web/inc/2fa/check.php $TWOFA $token)
45
if [ "$result" != "ok" ]; then
46
- echo "Error: Token missmatch"
+ echo "Error: Authentication token mismatch."
47
exit 9
48
49
0 commit comments