diff --git a/op/op.Setup2Factor.php b/op/op.Setup2Factor.php index 14f3bfa44..0f5592771 100644 --- a/op/op.Setup2Factor.php +++ b/op/op.Setup2Factor.php @@ -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; }