Refactor to align with PasswordAttemptWindow with override PasswordAttemptWindowInSeconds for testing.