minor change of language keys

This commit is contained in:
Uwe Steinmann 2025-10-09 08:56:20 +02:00
parent 8ab10dc5a3
commit 1845f24298

View File

@ -40,9 +40,9 @@ switch($action) {
$tfa = new \RobThree\Auth\TwoFactorAuth(new \RobThree\Auth\Providers\Qr\BaconQrCodeProvider());
header('Content-Type: application/json');
if($tfa->verifyCode($user->getSecret(), $_POST['code']) !== true) {
echo json_encode(array('success'=>false, 'message'=>getMLText("2_factor_auth_failed"), 'data'=>$_POST['code']));
echo json_encode(array('success'=>false, 'message'=>getMLText("2_factor_auth_test_failed"), 'data'=>$_POST['code']));
} else {
echo json_encode(array('success'=>true, 'message'=>getMLText("2_factor_auth_succeeded")));
echo json_encode(array('success'=>true, 'message'=>getMLText("2_factor_auth_test_succeeded")));
}
exit;
}