Skip to content

Commit 7473d16

Browse files
committed
Setup propper check script for 2fa.
1 parent 0ebe24a commit 7473d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-check-user-2fa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if [ -z "$TWOFA" ]; then
4141
fi
4242

4343
# Check if token is valid
44-
result=$($HESTIA/php/bin/php $HESTIA/web/inc/2fa/secret.php)
44+
result=$($HESTIA/php/bin/php $HESTIA/web/inc/2fa/check.php $TWOFA $token)
4545
if [ "$result" != "ok" ]; then
4646
echo "Error: Token missmatch"
4747
exit 9

0 commit comments

Comments
 (0)