mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 10:30:42 +00:00
minor change of language keys
This commit is contained in:
parent
8ab10dc5a3
commit
1845f24298
|
|
@ -40,9 +40,9 @@ switch($action) {
|
||||||
$tfa = new \RobThree\Auth\TwoFactorAuth(new \RobThree\Auth\Providers\Qr\BaconQrCodeProvider());
|
$tfa = new \RobThree\Auth\TwoFactorAuth(new \RobThree\Auth\Providers\Qr\BaconQrCodeProvider());
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
if($tfa->verifyCode($user->getSecret(), $_POST['code']) !== true) {
|
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 {
|
} 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;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user