From 7f129d74b6ae1f8e9b7f62287f91d51c7faa08b9 Mon Sep 17 00:00:00 2001 From: limpkin Date: Sat, 14 Oct 2023 18:10:34 +0200 Subject: [PATCH] allow empty login names for set totp, see #407 --- source_code/main_mcu/src/COMMS/comms_hid_msgs.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source_code/main_mcu/src/COMMS/comms_hid_msgs.c b/source_code/main_mcu/src/COMMS/comms_hid_msgs.c index 56f7e103..c47be4ca 100644 --- a/source_code/main_mcu/src/COMMS/comms_hid_msgs.c +++ b/source_code/main_mcu/src/COMMS/comms_hid_msgs.c @@ -1563,12 +1563,6 @@ void comms_hid_msgs_parse(hid_message_t* rcv_msg, uint16_t supposed_payload_leng comms_hid_msgs_send_ack_nack_message(is_message_from_usb, rcv_message_type, FALSE); return; } - /* Empty login name */ - if (rcv_msg->store_TOTP_credential.login_name[0] == 0) - { - comms_hid_msgs_send_ack_nack_message(is_message_from_usb, rcv_message_type, FALSE); - return; - } cust_char_t* service_name_pt = rcv_msg->store_TOTP_credential.service_name; cust_char_t* login_name_pt = rcv_msg->store_TOTP_credential.login_name;