Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable UpdateAuthData when no PIN is set #303

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

iranl
Copy link
Collaborator

@iranl iranl commented Feb 18, 2024

As per the API (and as evident from using the Nuki App) the Nuki PIN is required to retrieve auth data from the lock.

There currently is no check in NukiWrapper::updateAuthData() or NukiOpenerWrapper::updateAuthData() to check if the security PIN is set.

Enabling Publish Auth Data without a PIN set will result in lockouts of not just Nuki Hub but all systems using the API because Nuki Hub tries to retrieve the auth data with a PIN of 0.

PR fixes this behaviour.

@technyon technyon merged commit 9a5df44 into technyon:master Feb 19, 2024
1 check passed
@iranl iranl deleted the disable-publishauth-no-pin branch February 23, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants