Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
fixup! PasswordManager: add function for checking if complexity is su…
Browse files Browse the repository at this point in the history
…fficient
  • Loading branch information
reivilibre committed Jul 10, 2024
1 parent 701b251 commit 88b7656
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/handlers/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ impl TestState {
let metadata_cache = MetadataCache::new();

let password_manager = if site_config.password_login_enabled {
PasswordManager::new(3, [(1, Hasher::argon2id(None))])?
PasswordManager::new(
site_config.minimum_password_complexity,
[(1, Hasher::argon2id(None))],
)?
} else {
PasswordManager::disabled()
};
Expand Down

0 comments on commit 88b7656

Please sign in to comment.