Skip to content

Commit

Permalink
allow empty login names for set totp, see #407
Browse files Browse the repository at this point in the history
  • Loading branch information
limpkin committed Oct 14, 2023
1 parent 8ae487f commit 7f129d7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions source_code/main_mcu/src/COMMS/comms_hid_msgs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f129d7

Please sign in to comment.