mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 10:00:41 +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());
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user