We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
unknown username
Since we use a default PHC string to make the verifying time-constant, the actual Unknown Username case will be early returned as Invalid password.
Unknown Username
Invalid password
spawn_blocking_with_tracing(move || { verify_password_hash(expected_password_hash, credentials.password) }) .await // early return .context("Failed to spawn blocking task.")??; user_id // dead code .ok_or_else(|| anyhow::anyhow!("Unknown username.")) .map_err(AuthError::InvalidCredentials)
The text was updated successfully, but these errors were encountered:
validate_credentials
No branches or pull requests
Since we use a default PHC string to make the verifying time-constant, the actual
Unknown Username
case will be early returned asInvalid password
.The text was updated successfully, but these errors were encountered: