pub async fn authenticate_password(
db: &dyn DbProvider,
throttle: &LoginThrottle,
user: &UserName,
pwd: &str,
) -> Result<User, PasswordAuthError>Expand description
Checks a username and password, subject to the per-username attempt throttle. Every password check in Kellnr goes through here, so brute forcing is limited no matter which endpoint is used.