No length checking on Fixed PIN input #66

Closed
opened 2026-10-05 03:18:49 +02:00 by adam · 4 comments
Owner

Under Main Menu > Radio Settings > Bluetooth, Fixed PIN must be 6 digits; however, there is no length checking on this number, which can be much longer than 6 digits. It may be that none of the inputs do any validation checking, which could result in invalid configurations and much frustration for users.

Changes are probably needed in settings_menu in the file control_ui.py to implement validation checking for this and other settings.

Under Main Menu > Radio Settings > Bluetooth, Fixed PIN must be 6 digits; however, there is no length checking on this number, which can be much longer than 6 digits. It may be that none of the inputs do any validation checking, which could result in invalid configurations and much frustration for users. Changes are probably needed in settings_menu in the file control_ui.py to implement validation checking for this and other settings. <!-- github-sync-id:3254844146 -->
adam closed this issue 2026-10-05 03:18:49 +02:00
Author
Owner

So true...

So true... <!-- github-comment-id:3115447500 -->
Author
Owner
Work has begun on this issue in https://github.com/pdxlocations/contact/tree/input-validation <!-- github-comment-id:3119428860 -->
Author
Owner

The framework is merged in #211. Fixed Pin is "fixed" :-). New rules can be added to https://github.com/pdxlocations/contact/blob/main/contact/utilities/validation_rules.py

Thanks for the nudge, I never get around to validating inputs!

The framework is merged in #211. Fixed Pin is "fixed" :-). New rules can be added to https://github.com/pdxlocations/contact/blob/main/contact/utilities/validation_rules.py Thanks for the nudge, I never get around to validating inputs! <!-- github-comment-id:3123882165 -->
Author
Owner

Awesome!

Awesome! <!-- github-comment-id:3123904529 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/contact#66