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

fix August validation failure with verification codes starting with 0 #88

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

westhom
Copy link

@westhom westhom commented Jan 16, 2024

♻️ Current situation

If your August verification code starts with 0, the validation check fails. See issue #54 and #48.

💡 Proposed solution

Don't call parseInt() on the user-supplied verification code, which can delete leading zeros. The August validate() API method wants a string anyways.

⚙️ Release Notes

Support verification codes with leading zeros (no breaking changes).

➕ Additional Information

Testing

Reviewer Nudging

@donavanbecker donavanbecker changed the base branch from latest to beta-1.3.4 January 16, 2024 03:52
@donavanbecker donavanbecker merged commit 4400cc7 into donavanbecker:beta-1.3.4 Jan 16, 2024
@donavanbecker donavanbecker mentioned this pull request Jan 16, 2024
donavanbecker added a commit that referenced this pull request Jan 16, 2024
## [1.3.4](https://github.com/donavanbecker/homebridge-august/releases/tag/v1.3.4) (2024-01-15)

### What's Changes
- fix August validation failure with verification codes starting with `0`. Thanks [@westhom](https://github.com/westhom), [#88](#88)
- Housekeeping and updated dependencies.

**Full Changelog**: v1.3.3...v1.3.4
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