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

password-auth: replace VerifyError with Error enum #429

Merged
merged 1 commit into from
Jun 24, 2023

Conversation

tarcieri
Copy link
Member

VerifyError was previously the return type for the verify_password function which has two distinct error cases:

  • Password hash failed to parse
  • Password is invalid

This commit replaces VerifyError with an Error enum which captures both cases.

It leverages the ParseError type which was added in #428.

`VerifyError` was previously the return type for the `verify_password`
function which has two distinct error cases:

- Password hash failed to parse
- Password is invalid

This commit replaces `VerifyError` with an `Error` enum which captures
both cases.

It leverages the `ParseError` type which was added in #428.
@tarcieri tarcieri force-pushed the password-auth/replace-verify-error-with-error-enum branch from e37b5e0 to c32f3eb Compare June 24, 2023 20:13
@tarcieri tarcieri merged commit 45826c5 into master Jun 24, 2023
50 checks passed
@tarcieri tarcieri deleted the password-auth/replace-verify-error-with-error-enum branch June 24, 2023 20:29
@tarcieri tarcieri mentioned this pull request Jun 24, 2023
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

1 participant