Revert "PIN remaining tries only returned when user is not logged in. If so, it returns always OK."

This reverts commit 86e38419ac.
This commit is contained in:
Pol Henarejos
2022-03-31 14:30:50 +02:00
parent 923e05a36c
commit 33a2222cd8

View File

@@ -439,8 +439,6 @@ static int cmd_verify() {
}
if (file_read_uint8(file_retries_pin1->data+2) == 0)
return SW_PIN_BLOCKED();
if (isUserAuthenticated && has_session_pin)
return SW_OK();
return set_res_sw(0x63, 0xc0 | file_read_uint8(file_retries_pin1->data+2));
}
else if (p2 == 0x88) { //SOPin