mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 02:58:36 -07:00
MRTD reset auth on retry
This commit is contained in:
@@ -97,6 +97,8 @@ bool nfc_scene_passport_read_auth_on_event(void* context, SceneManagerEvent even
|
||||
|
||||
if(event.type == SceneManagerEventTypeCustom) {
|
||||
if(event.event == GuiButtonTypeLeft) {
|
||||
nfc->dev->dev_data.mrtd_data.auth_success = false;
|
||||
nfc->dev->dev_data.mrtd_data.auth.method = MrtdAuthMethodNone;
|
||||
scene_manager_next_scene(nfc->scene_manager, NfcSceneRetryConfirm);
|
||||
consumed = true;
|
||||
} else if(event.event == GuiButtonTypeCenter) {
|
||||
|
||||
@@ -85,6 +85,9 @@ bool nfc_scene_read_on_event(void* context, SceneManagerEvent event) {
|
||||
consumed = true;
|
||||
} else if(event.event == NfcWorkerEventReadPassport) {
|
||||
notification_message(nfc->notifications, &sequence_success);
|
||||
FURI_LOG_D("NFC", "Read passport, auth: %d, success: %d",
|
||||
nfc->dev->dev_data.mrtd_data.auth.method,
|
||||
nfc->dev->dev_data.mrtd_data.auth_success);
|
||||
if(nfc->dev->dev_data.mrtd_data.auth_success) {
|
||||
scene_manager_next_scene(nfc->scene_manager, NfcScenePassportReadAuthSuccess);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user